[vlc-commits] [Git][videolan/vlc][master] demux: ts: add delta to PES over aggregation check
Steve Lhomme (@robUx4)
gitlab at videolan.org
Tue May 28 10:32:51 UTC 2024
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
1bd12377 by François Cartegnie at 2024-05-28T10:00:12+00:00
demux: ts: add delta to PES over aggregation check
Works around bogus encoders
refs #28649
- - - - -
1 changed file:
- modules/demux/mpeg/ts_pes.c
Changes:
=====================================
modules/demux/mpeg/ts_pes.c
=====================================
@@ -111,7 +111,10 @@ static bool ts_pes_Push( ts_pes_parse_callback *cb,
{
/* too early unit start resulting from packet loss */
/* or ending on a pkt not belonging to PES (%15 packets loss) */
- i_flags |= BLOCK_FLAG_CORRUPTED;
+ /* But some encoders can't compute PES size right #28649 :/ */
+ if( p_pes->gather.i_gathered < p_pes->gather.i_data_size ||
+ p_pes->gather.i_gathered > p_pes->gather.i_data_size + 16 )
+ i_flags |= BLOCK_FLAG_CORRUPTED;
}
/* Flush the pes from pid */
p_pes->gather.p_data = NULL;
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/1bd1237704119595e9f323b343f33722a9b3438c
--
This project does not include diff previews in email notifications.
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/1bd1237704119595e9f323b343f33722a9b3438c
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list