Opened 3 years ago

Last modified 2 years ago

#9356 open defect

mpegts puts av_read_frame in infinite loop

Reported by: SuRGeoNix Owned by:
Priority: important Component: avformat
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no


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.

Attachments (2)

ffmpeg_mpegts_infiniteloop.cpp (2.1 KB ) - added by SuRGeoNix 3 years ago.
ffmpeg_mpegts_infiniteloop_log.txt (121.8 KB ) - added by SuRGeoNix 3 years ago.

Download all attachments as: .zip

Change History (4)

by SuRGeoNix, 3 years ago

by SuRGeoNix, 3 years ago

comment:2 by Balling, 2 years ago

Status: newopen
Note: See TracTickets for help on using tickets.