On Mon, 4 Apr 2016 15:56:31 +0200
Hugo Beauzée-Luyssen <[email protected]> wrote:
> Instead of using the ones in the AVFrame which can be uninitialized
When? It's quite broken to send such AVFrames to the encoder?
> ---
> 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 &&
_______________________________________________
ffmpeg-devel mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel