]> git.sesse.net Git - vlc/commitdiff
MKV: packetized codec can use VLC_TS_INVALID as i_pts for extra Block frames
authorSteve Lhomme <robUx4@videolabs.io>
Wed, 18 Mar 2015 11:53:53 +0000 (11:53 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 19 Mar 2015 11:12:55 +0000 (12:12 +0100)
Fixes WMA 9.1 Lossless playback through avcodec

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/demux/mkv/mkv.cpp

index 9a84a004731e5b5d875b7af13b10c2aa0d71731c..e6eb2ed5e6ce8f5ff6421b2fa64478038d3dc6a2 100644 (file)
@@ -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;
     }
 }