[FFmpeg-devel] Fix for PES packets with too much padding

Sergio M. Ammirata, Ph.D. sergio at ammirata.net
Tue Aug 3 17:07:34 EEST 2021


PES packet with too much padding trigger unlimited error
messages "PES packet size mismatch" because the code that
corrects the length is wrong.
Here is a sample file: http://99.93.62.129/smpte2038.ts
PID 300 is the one triggering the errors.
I am attaching a patch that fixes the problem.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-setting-the-correct-size-for-PES-packets-with-to.patch
Type: text/x-patch
Size: 1011 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20210803/72edaf04/attachment.bin>


More information about the ffmpeg-devel mailing list