[vlc-commits] MKV: packetized codec can use VLC_TS_INVALID as i_pts for extra Block frames

Steve Lhomme git at videolan.org
Thu Mar 19 12:13:10 CET 2015


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Wed Mar 18 11:53:53 2015 +0000| [fcf5a9e513ba11c68d47b39239e0b5ecdad2eaad] | committer: Jean-Baptiste Kempf

MKV: packetized codec can use VLC_TS_INVALID as i_pts for extra Block frames

Fixes WMA 9.1 Lossless playback through avcodec

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/demux/mkv/mkv.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/mkv/mkv.cpp b/modules/demux/mkv/mkv.cpp
index 9a84a00..e6eb2ed 100644
--- a/modules/demux/mkv/mkv.cpp
+++ b/modules/demux/mkv/mkv.cpp
@@ -723,7 +723,7 @@ msg_Dbg( p_demux, "block (track=%d) i_dts: %"PRId64" / i_pts: %"PRId64, tk->i_nu
         /* use time stamp only for first block */
         i_pts = ( tk->i_default_duration )?
                  i_pts + ( mtime_t )tk->i_default_duration:
-                 VLC_TS_INVALID;
+                 ( tk->fmt.b_packetized ) ? VLC_TS_INVALID : i_pts + 1;
     }
 }
 



More information about the vlc-commits mailing list