summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2003-12-15 10:46:34 +0000
committerFabrice Bellard <fabrice@bellard.org>2003-12-15 10:46:34 +0000
commit8bb27bdfd4de42d2cf00410bd51139a2b47768e1 (patch)
tree69f393f8e0fe754b411a3e194b516360342ccf0b /ffmpeg.c
parent2393e65431bc3457e675f9030a817b2adac4001f (diff)
init picture structure to avoid uninitialized fields
Originally committed as revision 2612 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 86ee13bfd2..7af1d50e61 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -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;