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.
pull/2/head
Stefano Sabatini 14 years ago
parent ed96fffb6e
commit 328810390d
  1. 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…
Cancel
Save