vlc | branch: master | Zhao Zhili <[email protected]> | Fri Jun 29 
10:44:12 2018 +0800| [efff6ccbf734048e1d7593e83c2059e9b09112e6] | committer: 
Tristan Matthews

codec: aom: use VLC_TS_INVALID

Signed-off-by: Tristan Matthews <[email protected]>

> 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);

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to