[vlc-devel] [PATCH] codec: aom: use VLC_TS_INVALID
Tristan Matthews
tmatth at videolan.org
Fri Jun 29 04:49:37 CEST 2018
Hi,
On Thu, Jun 28, 2018 at 10:44 PM, Zhao Zhili <quinkblack at foxmail.com> wrote:
> ---
> 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 b64237e..380ffc7 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;
LGTM, want to do the same for vpx.c as well?
Best,
Tristan
>
> aom_codec_err_t err;
> err = aom_codec_decode(ctx, block->p_buffer, block->i_buffer, pkt_pts);
> --
> 2.9.5
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
More information about the vlc-devel
mailing list