[vlc-devel] [PATCH] codec: vpx: use VLC_TS_INVALID
Zhao Zhili
quinkblack at foxmail.com
Fri Jun 29 04:56:43 CEST 2018
---
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 919f665..7c674e9 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);
--
2.9.5
More information about the vlc-devel
mailing list