diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2003-12-15 10:46:34 +0000 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2003-12-15 10:46:34 +0000 |
commit | 8bb27bdfd4de42d2cf00410bd51139a2b47768e1 (patch) | |
tree | 69f393f8e0fe754b411a3e194b516360342ccf0b | |
parent | 2393e65431bc3457e675f9030a817b2adac4001f (diff) | |
download | ffmpeg-8bb27bdfd4de42d2cf00410bd51139a2b47768e1.tar.gz |
init picture structure to avoid uninitialized fields
Originally committed as revision 2612 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | ffmpeg.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |