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

Steve Lhomme git at videolan.org
Tue Mar 12 07:32:52 CET 2019


vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Dec 12 14:20:43 2018 +0100| [131335c45a0c0ccd6feb7cbec094905e9d9833bb] | committer: Jean-Baptiste Kempf

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.

(cherry picked from commit be913993f0d75fe32f5f7b96d0a851a8b521514a)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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 e9035db1b0..8f12262ebc 100644
--- a/modules/demux/mkv/matroska_segment_parse.cpp
+++ b/modules/demux/mkv/matroska_segment_parse.cpp
@@ -1643,6 +1643,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