#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
_______________________________________________
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to