[FFmpeg-trac] #9356(avformat:new): mpegts puts av_read_frame in infinite loop
FFmpeg
trac at avcodec.org
Tue Aug 3 19:39:51 EEST 2021
#9356: mpegts puts av_read_frame in infinite loop
-----------------------------------+--------------------------------------
Reporter: SuRGeoNix | Type: defect
Status: new | Priority: important
Component: avformat | Version: git-master
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-----------------------------------+--------------------------------------
Summary of the bug:
By demuxing after av_seek_frame (in a non existing entry in table?) in .ts
file av_read_frame gets in infinite loop. Possible this is infinite
because it is a looped live HLS stream. However, this issue has been seen
in other cases (eg. with custom AVIO context and local file, including
matroska demuxer). It's possible that it also happens by using directly
local files but it will not be noticed because it reads the whole file
fast enough.
How to reproduce:
A sample .cpp (visual studio) code and log has been attached.
Additionally, this issue can be also reproduced by using an interrupt
callback and interrupting an av_read_frame or av_seek_frame request and
then trying to continue demuxing.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/9356>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list