Commit b047c687 authored by Anton Khirnov's avatar Anton Khirnov

4xm: don't rely on get_buffer() initializing the frame.

parent 2ca5ca29
...@@ -854,6 +854,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, ...@@ -854,6 +854,7 @@ static int decode_frame(AVCodecContext *avctx, void *data,
av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n"); av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
return -1; return -1;
} }
memset(f->last_picture.data[0], 0, avctx->height * FFABS(f->last_picture.linesize[0]));
} }
p->pict_type = AV_PICTURE_TYPE_P; p->pict_type = AV_PICTURE_TYPE_P;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment