Commit 5f6359d0 authored by Laurent Aimar's avatar Laurent Aimar

Workaround non set reordered_opaque value with some FFmpeg codecs.

It seems that decoders not using AVContext::get_buffer() do not
initialize AVFrame::reordered_opaque.
parent 710b39fa
...@@ -559,6 +559,7 @@ picture_t *DecodeVideo( decoder_t *p_dec, block_t **pp_block ) ...@@ -559,6 +559,7 @@ picture_t *DecodeVideo( decoder_t *p_dec, block_t **pp_block )
p_context->reordered_opaque = (p_block->i_dts << 1) | 1; p_context->reordered_opaque = (p_block->i_dts << 1) | 1;
else else
p_context->reordered_opaque = INT64_MIN; p_context->reordered_opaque = INT64_MIN;
p_sys->p_ff_pic->reordered_opaque = p_context->reordered_opaque;
/* Make sure we don't reuse the same timestamps twice */ /* Make sure we don't reuse the same timestamps twice */
p_block->i_pts = p_block->i_pts =
......
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