[FFmpeg-cvslog] ffmpeg: remove useless NULL-check on avfilter_unref_buffer
Stefano Sabatini
git at videolan.org
Fri May 20 10:10:04 CEST 2011
ffmpeg | branch: master | Stefano Sabatini <stefano.sabatini-lala at poste.it> | Thu May 19 19:01:38 2011 +0200| [328810390d0458b7c8200342a87f238f7610b776] | committer: 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.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=328810390d0458b7c8200342a87f238f7610b776
---
ffmpeg.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/ffmpeg.c b/ffmpeg.c
index 2b19c7f..fb644ad 100644
--- a/ffmpeg.c
+++ b/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
}
More information about the ffmpeg-cvslog
mailing list