[FFmpeg-trac] #5985(avcodec:open): error decoding h264 stream with h264_cuvid in udp mpegts

FFmpeg trac at avcodec.org
Fri Dec 2 14:38:20 EET 2016


#5985: error decoding h264 stream with h264_cuvid in udp mpegts
-------------------------------------+-------------------------------------
             Reporter:  doubleb      |                    Owner:
                 Type:  defect       |                   Status:  open
             Priority:  important    |                Component:  avcodec
              Version:  git-master   |               Resolution:
             Keywords:  crash        |               Blocked By:
  SIGSEGV h264                       |  Reproduced by developer:  0
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by oromit):

 There is something strange going on here, the problem is in the
 has_decode_delay_been_guessed function in libavformat/utils.c.

 Setting a breakpoint there, I at some point get this result in gdb:

 (gdb) print st->codecpar->codec_id
 $8 = AV_CODEC_ID_H264
 (gdb) print st->internal->avctx->codec_id
 $9 = AV_CODEC_ID_MPEG2VIDEO

 So from what I figure, it seems like the codecpar codec_id is set to h264,
 due to the decoder being forced to a h264 decoder on the commandline,
 while the underlying codec is actually mpeg2.

 It looks like the fix would be to extend the initial check for h264 to
 also check the internal codec being used.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/5985#comment:12>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list