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

ffmpegandmahanstreamer at e.email ffmpegandmahanstreamer at e.email
Tue Aug 3 17:20:21 EEST 2021


August 3, 2021 10:07 AM, "Sergio M. Ammirata, Ph.D." <sergio at ammirata.net> wrote:

> 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.
> 
On the if statement right above your change,  are you sure that the condition should still be buf_size > pes->total_size? Especially if the old change was just buf_size = pes->total_size (so clipping according to condition); and the new one is setting it to something different. 

thx for patch.
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-devel mailing list