LAVFilters icon indicating copy to clipboard operation
LAVFilters copied to clipboard

Added a timeout on av_read_frame in LAVFDemuxer.cpp

Open coldays opened this issue 2 years ago • 1 comments

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

coldays avatar Dec 12 '22 12:12 coldays

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

clsid2 avatar Dec 12 '22 14:12 clsid2