4.5.1
Two bug fixes for the native loopback-HLS / remote-open path. No public API change; safe minor-pin upgrade from any 4.5.x.
Fixed
Head-of-stream audio muxed ahead of video was dropped → constant ~1s A/V desync (#74)
On the native loopback-HLS path the producer's audio gate dropped every audio packet that arrived before the first video packet. On a wide-interleave source (audio muxed ~1s ahead of video in file order, e.g. a progressive MP4 whose leading second of AAC precedes the first video packet) that discarded the entire leading second of real audio, so AVPlayer pulled the survivors forward into a constant ~1s lag. The same file stays in sync in VLC / Infuse, confirming the source is correct and the offset was introduced by the remux.
The producer now buffers that pre-gate audio (bounded by an 8 MB cap) and replays it in DTS order once the video gate opens, so it flows through the normal target-filter / anchor / write path. Scoped to head-of-stream; restart and seek producers keep the original drop, where the post-gate shift already anchors their surviving audio. Above the cap the original drop resumes.
Thanks to reckloon for the report and the corrected root-cause analysis.
An unresolvable cover-art stream made remote open read to the full probe budget (#75)
A remote MP4 carrying an embedded cover-art stream (mjpeg, reported as 0x0) kept avformat_find_stream_info reading toward probesize (tens of MB pulled over the network) chasing codec parameters that never resolve, even though the real H.264 + AAC streams were available almost immediately. The open was dominated by the dead-end cover stream.
Attached-picture streams are now reclassified to AVMEDIA_TYPE_ATTACHMENT before stream-info probing, so has_codec_parameters resolves them instantly and the probe stops once the real streams are known. Cover-art extraction is unaffected (it reads the attached picture plus the unchanged disposition; discard is intentionally left untouched so the cover is still queued).
Thanks to reckloon for the report.
Full diff: 4.5.0...4.5.1