Commit edd1cb88 authored by Laurent Aimar's avatar Laurent Aimar

Fixed potential NULL deference when flushing in avcodec encoder module.

parent 1df47ba6
...@@ -993,7 +993,7 @@ static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict ) ...@@ -993,7 +993,7 @@ static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict )
p_sys->i_last_ref_pts = p_block->i_pts; p_sys->i_last_ref_pts = p_block->i_pts;
} }
} }
else else if( p_pict )
{ {
/* Buggy libavcodec which doesn't update coded_frame->pts /* Buggy libavcodec which doesn't update coded_frame->pts
* correctly */ * correctly */
......
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