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

Sergio M. Ammirata, Ph.D. sergio at ammirata.net
Fri Aug 6 00:19:29 EEST 2021


You are right ... the if statement would have to change as
well.
On Tue, 2021-08-03 at 14:20 +0000, 
ffmpegandmahanstreamer at e.email wrote:
> August 3, 2021 10:07 AM, "Sergio M. Ammirata, Ph.D." <
> sergio at ammirata.net> wrote:
> PES packet with too much padding trigger unlimited
> errormessages "PES packet size mismatch" because the code
> thatcorrects the length is wrong.Here is a sample file: 
> http://99.93.62.129/smpte2038.tsPID 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 listffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> To unsubscribe, visit link above, or emailffmpeg-devel-
> request at ffmpeg.org with subject
> "unsubscribe".___________________________________________
> ____ffmpeg-devel mailing listffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> To unsubscribe, visit link above, or 
> emailffmpeg-devel-request at ffmpeg.org with subject
> "unsubscribe".


More information about the ffmpeg-devel mailing list