[vlc-commits] codec: aom: use VLC_TS_INVALID
Zhao Zhili
git at videolan.org
Fri Jun 29 04:54:21 CEST 2018
vlc | branch: master | Zhao Zhili <quinkblack at foxmail.com> | Fri Jun 29 10:44:12 2018 +0800| [efff6ccbf734048e1d7593e83c2059e9b09112e6] | committer: Tristan Matthews
codec: aom: use VLC_TS_INVALID
Signed-off-by: Tristan Matthews <tmatth at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=efff6ccbf734048e1d7593e83c2059e9b09112e6
---
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 b64237e78e..380ffc7676 100644
--- a/modules/codec/aom.c
+++ b/modules/codec/aom.c
@@ -167,7 +167,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