[vlc-commits] aom: decoder: fallback to dts if pts is invalid
Tristan Matthews
git at videolan.org
Tue Jul 24 17:09:59 CEST 2018
vlc/vlc-3.0 | branch: master | Tristan Matthews <tmatth at videolan.org> | Thu Jun 28 21:14:08 2018 -0400| [5b5d9313f61e55222cf6c46227228a2a90bce5eb] | committer: Francois Cartegnie
aom: decoder: fallback to dts if pts is invalid
Cherry-picked from 043cde8a16911e540543b5f63daee5e3282f4aac
(cherry picked from commit ff5adfedeab70d1d1c2d70f1a13a029786d9fa32)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=5b5d9313f61e55222cf6c46227228a2a90bce5eb
---
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 2223827f22..5cac4b1f45 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;
+ *pkt_pts = block->i_pts ? 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