Commit 043cde8a authored by Rafaël Carré's avatar Rafaël Carré Committed by Tristan Matthews

vpx: fallback to dts if pts is invalid

Fixes playback for VP9 in mp4.
Signed-off-by: Tristan Matthews's avatarTristan Matthews <>
parent 15060465
......@@ -125,7 +125,7 @@ static picture_t *Decode(decoder_t *dec, block_t **pp_block)
return NULL;
*pkt_pts = block->i_pts;
*pkt_pts = block->i_pts ? block->i_pts : block->i_dts;
vpx_codec_err_t err;
err = vpx_codec_decode(ctx, block->p_buffer, block->i_buffer, pkt_pts, 0);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment