[vlc-commits] codec: vpx: use VLC_TS_INVALID

Zhao Zhili git at videolan.org
Fri Jun 29 05:06:08 CEST 2018


vlc | branch: master | Zhao Zhili <quinkblack at foxmail.com> | Fri Jun 29 10:56:43 2018 +0800| [0fff484a85699bdc2bff7a27e7587ba47f5028b0] | committer: Tristan Matthews

codec: vpx: use VLC_TS_INVALID

Signed-off-by: Tristan Matthews <tmatth at videolan.org>

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

 modules/codec/vpx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/vpx.c b/modules/codec/vpx.c
index 919f66583c..7c674e9870 100644
--- a/modules/codec/vpx.c
+++ b/modules/codec/vpx.c
@@ -179,7 +179,7 @@ static int Decode(decoder_t *dec, block_t *block)
         return VLCDEC_SUCCESS;
     }
 
-    *pkt_pts = block->i_pts ? block->i_pts : block->i_dts;
+    *pkt_pts = (block->i_pts != VLC_TS_INVALID) ? block->i_pts : block->i_dts;
 
     vpx_codec_err_t err;
     err = vpx_codec_decode(ctx, block->p_buffer, block->i_buffer, pkt_pts, 0);



More information about the vlc-commits mailing list