[vlc-commits] codec: aom: use VLC_TS_INVALID
Zhao Zhili
git at videolan.org
Tue Jul 24 17:10:01 CEST 2018
vlc/vlc-3.0 | branch: master | Zhao Zhili <quinkblack at foxmail.com> | Fri Jun 29 10:44:12 2018 +0800| [1a6bea46b79cc40eb3573a8e2fced0b641d7bfa8] | committer: Francois Cartegnie
codec: aom: use VLC_TS_INVALID
Signed-off-by: Tristan Matthews <tmatth at videolan.org>
(cherry picked from commit efff6ccbf734048e1d7593e83c2059e9b09112e6)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=1a6bea46b79cc40eb3573a8e2fced0b641d7bfa8
---
modules/codec/aom.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/codec/aom.c b/modules/codec/aom.c
index f48e8c9fdd..c6f507dced 100644
--- a/modules/codec/aom.c
+++ b/modules/codec/aom.c
@@ -139,7 +139,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;
aom_codec_err_t err;
err = aom_codec_decode(ctx, block->p_buffer, block->i_buffer, pkt_pts);
More information about the vlc-commits
mailing list