# HG changeset patch # User bcoudurier # Date 1239593935 0 # Node ID f35f6f0b7fe760e66d4325ed877653c7ece94944 # Parent b23a7b2151044be6f4c4667e880be18c97ea70e0 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) diff -r b23a7b215104 -r f35f6f0b7fe7 utils.c --- a/utils.c Mon Apr 13 03:32:02 2009 +0000 +++ b/utils.c Mon Apr 13 03:38:55 2009 +0000 @@ -1860,6 +1860,7 @@ 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;