Am 10.05.2018 um 04:51 schrieb Wang Bin:
- offset += cpy.Height; + frame->buf[1] = av_buffer_create((uint8_t *)unmap_data, sizeof(*unmap_data), + nvdec_unmap_mapped_frame, (void*)devptr, + AV_BUFFER_FLAG_READONLY); + if (!frame->buf[1]) { + ret = AVERROR(ENOMEM); + goto copy_fail; }If AVFrame.buf[i] is non-NULL, then buf[j] must be non-NULL for all j < i, see libavutil/frame.h. So either change the comment in frame.h or change your implementation is required
buf[0] is filled by the hw_frames_ctx, with a dummy buffer, but it is filled.
So after this buf[0] and buf[1] are filled, so I don't see the problem?
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel