[FFmpeg-trac] #11172(undetermined:open): M2TS: parser assumes until PES or in PES at least one packet has no 0x47 byte in TP_extra_header
FFmpeg
trac at avcodec.org
Sat Nov 30 20:25:24 EET 2024
#11172: M2TS: parser assumes until PES or in PES at least one packet has no 0x47
byte in TP_extra_header
-------------------------------------+-------------------------------------
Reporter: Balling | Owner: llyyr
Type: defect | Status: open
Priority: normal | Component:
| undetermined
Version: git-master | Resolution:
Keywords: m2ts | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by llyyr):
> Can you apply your patch?
I'm not sure what you want from me. I've posted the patch. It just needs
to be reviewed/pushed.
> just check the fifth byte is 0x47 and then check that 4 previous bytes
are not 0x47
You're misunderstanding the problem. Your bug occurs when the 5th byte is
where the TS packet starts, and it's prefixed by 4 bytes of
TP_extra_header and those 4 bytes happen to include the sync byte.
Skipping the first four bytes for 192 bytes packets is the fix, no need to
backtrack or anything like that.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/11172#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list