[FFmpeg-trac] #1453(undetermined:new): Segfault when decoding H264 video

FFmpeg trac at avcodec.org
Sun Jun 17 21:42:31 CEST 2012


#1453: Segfault when decoding H264 video
-------------------------------------+-------------------------------------
             Reporter:  kyl416       |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  important    |                Component:
              Version:  git-master   |  undetermined
             Keywords:               |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by kyl416):

 I just compiled the latest git, it still segfaults. It's also not limited
 to ffmpeg, it occurs with ffplay as well as VLC when compiled with the
 latest git of ffmpeg.

 Here's the backtrace with --disable-stripping.
 {{{
 #0  0x00007ffff68e48b0 in ff_h264_decode_nal (h=0x0,
     src=0x659985 "B\300\f\226t\n\017\330\n\004",
 dst_length=0x7fffffffc4ec,
     consumed=0x7fffffffc4e8, length=38) at libavcodec/h264.c:175
 #1  0x00007ffff692a449 in decode_nal_units (h=0x7fffe8a22040, buf=0x659980
 "",
     buf_size=43) at libavcodec/h264.c:4266
 #2  0x00007ffff692b245 in ff_h264_decode_extradata (h=0x7fffe8a22040,
     buf=0x659980 "", size=43) at libavcodec/h264.c:1206
 #3  0x00007ffff694edd7 in h264_parse (s=0x658a00, avctx=0x650920,
     poutbuf=0x7fffffffc6d0, poutbuf_size=0x7fffffffc6d8, buf=0x658ba0 "",
     buf_size=691) at libavcodec/h264_parser.c:311
 #4  0x00007ffff6a9721d in av_parser_parse2 (s=0x658a00, avctx=0x650920,
     poutbuf=0x7fffffffc6d0, poutbuf_size=0x7fffffffc6d8, buf=<optimized
 out>,
     buf_size=<optimized out>, pts=0, dts=-9223372036854775808, pos=-1)
     at libavcodec/parser.c:149
 #5  0x00007ffff76bc423 in parse_packet (s=0x64a0c0, pkt=0x7fffffffc7f0,
     stream_index=<optimized out>) at libavformat/utils.c:1183
 #6  0x00007ffff76bc8dc in read_frame_internal (s=0x64a0c0,
 pkt=0x7fffffffc9f0)
     at libavformat/utils.c:1352
 #7  0x00007ffff76be311 in avformat_find_stream_info (ic=0x64a0c0,
     options=0x661f00) at libavformat/utils.c:2582
 #8  0x0000000000413156 in opt_input_file (o=0x7fffffffcf40,
     opt=<optimized out>, filename=<optimized out>) at ffmpeg.c:4300
 #9  0x0000000000419950 in parse_option (optctx=0x7fffffffcf40,
     opt=0x7fffffffe3c3 "i",
     arg=0x7fffffffe3c5 "rtsp://(hidden)",
     options=0x6217a0) at cmdutils.c:311
 #10 0x0000000000419af3 in parse_options (optctx=0x7fffffffcf40, argc=3,
     argv=0x7fffffffe098, options=0x6217a0,
     parse_arg_function=0x414780 <opt_output_file>) at cmdutils.c:344
 #11 0x00000000004062d9 in main (argc=3, argv=0x7fffffffe098) at
 ffmpeg.c:5897
 }}}

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1453#comment:2>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list