diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-05-19 19:01:38 +0200 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-05-20 09:34:56 +0200 |
commit | 328810390d0458b7c8200342a87f238f7610b776 (patch) | |
tree | 6d188f84107be48f35a1d01bf3154cf283d479d3 /ffmpeg.c | |
parent | ed96fffb6e0c744a405f379ba4ff4faf9e79173d (diff) | |
download | ffmpeg-328810390d0458b7c8200342a87f238f7610b776.tar.gz |
ffmpeg: remove useless NULL-check on avfilter_unref_buffer
The check is no more required since recent changes in the
avfilter_unref_buffer(), the check is done in the function.
Simplify.
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1785,8 +1785,7 @@ static int output_packet(AVInputStream *ist, int ist_index, cont: frame_available = (ist->st->codec->codec_type == AVMEDIA_TYPE_VIDEO) && ost->output_video_filter && avfilter_poll_frame(ost->output_video_filter->inputs[0]); - if (ost->picref) - avfilter_unref_buffer(ost->picref); + avfilter_unref_buffer(ost->picref); } #endif } |