Commit 32881039 authored by Stefano Sabatini's avatar Stefano Sabatini

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.
parent ed96fffb
...@@ -1785,8 +1785,7 @@ static int output_packet(AVInputStream *ist, int ist_index, ...@@ -1785,8 +1785,7 @@ static int output_packet(AVInputStream *ist, int ist_index,
cont: cont:
frame_available = (ist->st->codec->codec_type == AVMEDIA_TYPE_VIDEO) && frame_available = (ist->st->codec->codec_type == AVMEDIA_TYPE_VIDEO) &&
ost->output_video_filter && avfilter_poll_frame(ost->output_video_filter->inputs[0]); 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 #endif
} }
......
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