[FFmpeg-cvslog] lavfi/tinterlace: remove unnecessary NULL check in start_frame()
Stefano Sabatini
git at videolan.org
Fri Apr 27 22:47:32 CEST 2012
ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Fri Apr 27 22:21:22 2012 +0200| [18c6bd098baba1ace8fea946e4bc0c60098f49d4] | committer: Stefano Sabatini
lavfi/tinterlace: remove unnecessary NULL check in start_frame()
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=18c6bd098baba1ace8fea946e4bc0c60098f49d4
---
libavfilter/vf_tinterlace.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/libavfilter/vf_tinterlace.c b/libavfilter/vf_tinterlace.c
index ac83503..62e8d46 100644
--- a/libavfilter/vf_tinterlace.c
+++ b/libavfilter/vf_tinterlace.c
@@ -165,8 +165,7 @@ static void start_frame(AVFilterLink *inlink, AVFilterBufferRef *picref)
AVFilterContext *ctx = inlink->dst;
TInterlaceContext *tinterlace = ctx->priv;
- if (tinterlace->cur)
- avfilter_unref_buffer(tinterlace->cur);
+ avfilter_unref_buffer(tinterlace->cur);
tinterlace->cur = tinterlace->next;
tinterlace->next = picref;
}
More information about the ffmpeg-cvslog
mailing list