[vlc-commits] aom: decoder: fallback to dts if pts is invalid
Tristan Matthews
git at videolan.org
Fri Jun 29 03:36:52 CEST 2018
vlc | branch: master | Tristan Matthews <tmatth at videolan.org> | Thu Jun 28 21:14:08 2018 -0400| [ff5adfedeab70d1d1c2d70f1a13a029786d9fa32] | committer: Tristan Matthews
aom: decoder: fallback to dts if pts is invalid
Cherry-picked from 043cde8a16911e540543b5f63daee5e3282f4aac
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ff5adfedeab70d1d1c2d70f1a13a029786d9fa32
---
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 dd718b3124..8f24864aa4 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;
+ *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