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.
This commit is contained in:
Stefano Sabatini 2011-05-19 19:01:38 +02:00
parent ed96fffb6e
commit 328810390d

View File

@ -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
}