[vlc-commits] demux:mkv: V_MJPEG has no DTS timing

Steve Lhomme git at videolan.org
Wed Dec 12 14:21:10 CET 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Dec 12 14:20:43 2018 +0100| [be913993f0d75fe32f5f7b96d0a851a8b521514a] | committer: Steve Lhomme

demux:mkv: V_MJPEG has no DTS timing

Fixes playback of files created with lavf 58.12. They contain no keyframe,
even though all frames are keyframes for MJPEG.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=be913993f0d75fe32f5f7b96d0a851a8b521514a
---

 modules/demux/mkv/matroska_segment_parse.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/demux/mkv/matroska_segment_parse.cpp b/modules/demux/mkv/matroska_segment_parse.cpp
index 75e6778503..549519e98d 100644
--- a/modules/demux/mkv/matroska_segment_parse.cpp
+++ b/modules/demux/mkv/matroska_segment_parse.cpp
@@ -1768,6 +1768,7 @@ bool matroska_segment_c::TrackInit( mkv_track_t * p_tk )
         }
         S_CASE("V_MJPEG") {
             vars.p_fmt->i_codec = VLC_CODEC_MJPG;
+            vars.p_tk->b_pts_only = true;
         }
         S_CASE("V_UNCOMPRESSED") {
             msg_Dbg( vars.p_demuxer, "uncompressed format detected");



More information about the vlc-commits mailing list