vlc/vlc-3.0 | branch: master | Steve Lhomme <[email protected]> | 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 <[email protected]>

> 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");

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to