Nevcairiel / LAVFilters

LAV Filters - Open-Source DirectShow Media Splitter and Decoders
GNU General Public License v2.0
7.23k stars 786 forks source link

Added a timeout on av_read_frame in LAVFDemuxer.cpp #524

Open coldays opened 1 year ago

coldays commented 1 year ago

Fixed a bug where the demuxer would get stuck on av_read_frame in LAVFDemuxer.cpp:GetNextPacket.

Repro steps:

  1. Connect to a rtsp stream source
  2. Disconnect the rtsp source (e.g. pull the power)
  3. Watch how demuxer is perpetually stuck on av_read_frame
clsid2 commented 1 year ago

LAV Filters included in MPC-HC uses a similar patch: https://github.com/clsid2/LAVFilters/commit/9633f1a9d2ce5beb08efee564a462498c2ec31b1