tagdemux/typefind: Be more lenient finding MPEG-TS sync words.
Submitted by GstBlub
Link to original bug (#770354)
Description
Created attachment 334102
tagdemux/typefind: Be more lenient finding MPEG-TS sync words
This bug is similar to #348075
.
The MP3 file(s) in question play in just about any player I tried, but won't play with gstreamer. They have a ID3v2 header that indicates a size that should probably be bigger to cover the entire area of (probably deleted) IDv3 content, but for whatever reason they are not. In one instance there is about 62k of zero bytes following the IDv3 header, just before the first MP3 frame starts. This is technically fine, because we're supposed to search for the first MPEG-TS sync word. There is no clear definition of what is right and what is wrong, but it feels like only considering 10k might be a little too aggressive.
Patch 334102, "tagdemux/typefind: Be more lenient finding MPEG-TS sync words":
0001-tagdemux-typefind-Be-more-lenient-finding-MPEG-TS-sy.patch