aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-04-13 03:38:55 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-04-13 03:38:55 +0000
commit1bd280f73076b7a58371585b95b08379f2445332 (patch)
tree4cf95819f00089d2c2a6f1c83d6646f68c6f3252
parent1b66180263d0f73921a8d3cdfa24f5031b2347f0 (diff)
downloadffmpeg-1bd280f73076b7a58371585b95b08379f2445332.tar.gz
Set frame defaults in try_decode_frame.
Fix: ==22211== Conditional jump or move depends on uninitialised value(s) ==22211== at 0x811E692: ff_print_debug_info (mpegvideo.c:1137) ==22211== by 0x82E6A7B: decode_frame (h264.c:7897) ==22211== by 0x80F2823: avcodec_decode_video2 (utils.c:564) [...] ==22211== Uninitialised value was created by a stack allocation ==22211== at 0x8064AA3: try_decode_frame (utils.c:1845) Originally committed as revision 18483 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/utils.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index df45f9efcc..bdf168ae93 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -1860,6 +1860,7 @@ static int try_decode_frame(AVStream *st, AVPacket *avpkt)
if(!has_codec_parameters(st->codec)){
switch(st->codec->codec_type) {
case CODEC_TYPE_VIDEO:
+ avcodec_get_frame_defaults(&picture);
ret = avcodec_decode_video2(st->codec, &picture,
&got_picture, avpkt);
break;