[vlc-commits] mux: ts: don't write dts if dts==pts
Francois Cartegnie
git at videolan.org
Wed Jan 13 16:57:12 UTC 2021
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Jan 12 17:32:24 2021 +0100| [3dd29523ee67a0c642f9a41c5b125e44ff73adda] | committer: Francois Cartegnie
mux: ts: don't write dts if dts==pts
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3dd29523ee67a0c642f9a41c5b125e44ff73adda
---
modules/mux/mpeg/pes.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/mux/mpeg/pes.c b/modules/mux/mpeg/pes.c
index 98c05add41..def7e78b97 100644
--- a/modules/mux/mpeg/pes.c
+++ b/modules/mux/mpeg/pes.c
@@ -109,7 +109,7 @@ static inline int PESHeader( uint8_t *p_hdr, int64_t i_pts, int64_t i_dts,
int i_pts_dts;
bool b_pes_extension_flag = false;
- if( i_pts > 0 && i_dts > 0 &&
+ if( i_pts > 0 && i_dts > 0 && i_pts != i_dts &&
( i_pts != i_dts || ( p_fmt->i_cat == VIDEO_ES &&
p_fmt->i_codec != VLC_CODEC_MPGV &&
p_fmt->i_codec != VLC_CODEC_MP2V &&
More information about the vlc-commits
mailing list