Commit 8bb27bdf authored by Fabrice Bellard's avatar Fabrice Bellard

init picture structure to avoid uninitialized fields

Originally committed as revision 2612 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 2393e654
......@@ -1291,6 +1291,8 @@ static int av_encode(AVFormatContext **output_files,
break;
case CODEC_TYPE_VIDEO:
data_size = (ist->st->codec.width * ist->st->codec.height * 3) / 2;
/* XXX: allocate picture correctly */
memset(&picture, 0, sizeof(picture));
ret = avcodec_decode_video(&ist->st->codec,
&picture, &got_picture, ptr, len);
ist->st->quality= picture.quality;
......
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