Commit a14dadea 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.

It is doing the same as [5f6359d02ce5962e814cb25916861704d65454c5] from
vlc master.
parent 9e64fd60
...@@ -541,6 +541,7 @@ picture_t *DecodeVideo( decoder_t *p_dec, block_t **pp_block ) ...@@ -541,6 +541,7 @@ picture_t *DecodeVideo( decoder_t *p_dec, block_t **pp_block )
int i_used, b_gotpicture; int i_used, b_gotpicture;
picture_t *p_pic; picture_t *p_pic;
p_sys->p_ff_pic->pts = p_sys->input_pts;
i_used = avcodec_decode_video( p_sys->p_context, p_sys->p_ff_pic, i_used = avcodec_decode_video( p_sys->p_context, p_sys->p_ff_pic,
&b_gotpicture, &b_gotpicture,
p_block->i_buffer <= 0 && p_sys->b_flush ? NULL : p_block->p_buffer, p_block->i_buffer ); p_block->i_buffer <= 0 && p_sys->b_flush ? NULL : p_block->p_buffer, p_block->i_buffer );
......
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