avformat/mpegts: use actually read packet size in mpegts_resync special case
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 16 Sep 2021 21:12:42 +0000 (23:12 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 9 Oct 2021 16:34:49 +0000 (18:34 +0200)
commit67b9b10b70ada6c8df513958c180eb7bd2f9c2d7
tree767901b7b7f99256651f97ad68b997362a6f4028
parent582098acf75984c518e4ff991dbe0fb3e4a5ee47
avformat/mpegts: use actually read packet size in mpegts_resync special case

Fixes: infinite loop
Fixes: 37986/clusterfuzz-testcase-minimized-ffmpeg_dem_MPEGTSRAW_fuzzer-5292311517462528 -

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Marton Balint <cus@passwd.hu>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 83b2e4c8f15a00f037040131e26e20de83f0d842)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/mpegts.c