[FFmpeg-trac] #7572(avformat:open): Infinite loop during getting single frame (image2) from HLS/fmp4 video file

FFmpeg trac at avcodec.org
Sat Jan 26 22:07:51 EET 2019


#7572: Infinite loop during getting single frame (image2) from HLS/fmp4 video file
--------------------------------------+------------------------------------
             Reporter:  javer         |                    Owner:
                 Type:  defect        |                   Status:  open
             Priority:  important     |                Component:  avformat
              Version:  git-master    |               Resolution:
             Keywords:  deadlock mov  |               Blocked By:
             Blocking:                |  Reproduced by developer:  1
Analyzed by developer:  0             |
--------------------------------------+------------------------------------

Comment (by mptcultist):

 i need to pay my idiot tax, and as such
 some debugging notes:
 - we keep pulling a value of AV_NOPTS_VALUE from sidx_pts on the stream
 - this is _probably_ an issue in mov_read_sidx, where MOVFragmentIndex is
 filled, where sidx_pts is never replaced(probably line 5000, mov.c) from
 default value AV_NOPTS_VALUE(line 1330, mov.c).
 - we never hit breakpoints placed on lines 1165 or 1172 of mov.c, and as
 such the problem doesn't end up in update_frag_index(at least on
 insertion).
 - this means get_frag_stream_info isn't called for the bad stream
 structures, and as such they simply aren't filled at all.
 i don't really know what the implications of all of this is, but i'm
 planning on mashing my head on the keyboard again tonight to figure this
 out once and for all, and hopefully to earn the love, money, and adoration
 of those here so i can go pick up some humbuckers.

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


More information about the FFmpeg-trac mailing list