Instead of using the ones in the AVFrame which can be uninitialized --- libavcodec/rawenc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/rawenc.c b/libavcodec/rawenc.c index d837056..27e4a29 100644 --- a/libavcodec/rawenc.c +++ b/libavcodec/rawenc.c @@ -60,8 +60,8 @@ static int raw_encode(AVCodecContext *avctx, AVPacket *pkt, return ret; if ((ret = av_image_copy_to_buffer(pkt->data, pkt->size, (const uint8_t **)frame->data, frame->linesize, - frame->format, - frame->width, frame->height, 1)) < 0) + avctx->pix_fmt, + avctx->width, avctx->height, 1)) < 0) return ret; if(avctx->codec_tag == AV_RL32("yuv2") && ret > 0 && -- 2.8.0.rc3 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel