[FFmpeg-cvslog] lavfi/tinterlace: drop redundant NULL checks in uninit()
Stefano Sabatini
git at videolan.org
Thu Dec 6 22:48:44 CET 2012
ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Thu Dec 6 22:18:24 2012 +0100| [da9a45b6815237b7fbcb7cc5cfd99244889661c7] | committer: Stefano Sabatini
lavfi/tinterlace: drop redundant NULL checks in uninit()
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=da9a45b6815237b7fbcb7cc5cfd99244889661c7
---
libavfilter/vf_tinterlace.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavfilter/vf_tinterlace.c b/libavfilter/vf_tinterlace.c
index e0ba11a..496576d 100644
--- a/libavfilter/vf_tinterlace.c
+++ b/libavfilter/vf_tinterlace.c
@@ -106,8 +106,8 @@ static av_cold void uninit(AVFilterContext *ctx)
{
TInterlaceContext *tinterlace = ctx->priv;
- if (tinterlace->cur ) avfilter_unref_bufferp(&tinterlace->cur );
- if (tinterlace->next) avfilter_unref_bufferp(&tinterlace->next);
+ avfilter_unref_bufferp(&tinterlace->cur );
+ avfilter_unref_bufferp(&tinterlace->next);
av_opt_free(tinterlace);
av_freep(&tinterlace->black_data[0]);
More information about the ffmpeg-cvslog
mailing list