lavfi/tinterlace: remove unnecessary NULL check in start_frame()

This commit is contained in:
Stefano Sabatini 2012-04-27 22:21:22 +02:00
parent cf9f7e40cc
commit 18c6bd098b
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}