Commit f85db3b9 authored by bellard's avatar bellard

init picture structure to avoid uninitialized fields


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@2612 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b5402b28
......@@ -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