On Sun, 17 May 2020, [email protected] wrote:
From: Limin Wang <[email protected]> Signed-off-by: Limin Wang <[email protected]> --- libavformat/mpegts.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index 0833d62..4bca339 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -2852,6 +2852,8 @@ static void reanalyze(MpegTSContext *ts) { ts->size_stat[1] ++; } else if (pos == TS_FEC_PACKET_SIZE) { ts->size_stat[2] ++; + } else { + return; }
Okay, so what this patch does is that it skips unrecognized sync byte distances entirely. I guess that is OK, but it still not fixes not recognizing skipped 0x47 bytes. I will send an alternative patch with some more explanation.
Thanks, Marton _______________________________________________ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
