mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-24 16:22:37 +00:00
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:
parent
ed96fffb6e
commit
328810390d
3
ffmpeg.c
3
ffmpeg.c
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user