1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-24 13:56:33 +02:00

lavfi/deshake: remove unecessary check before unref.

This commit is contained in:
Clément Bœsch 2012-12-06 16:14:38 +01:00
parent e7b0e83e96
commit 0678641b7c

View File

@ -530,8 +530,7 @@ static int filter_frame(AVFilterLink *link, AVFilterBufferRef *in)
// Store the current frame as the reference frame for calculating the // Store the current frame as the reference frame for calculating the
// motion of the next frame // motion of the next frame
if (deshake->ref != NULL) avfilter_unref_buffer(deshake->ref);
avfilter_unref_buffer(deshake->ref);
// Cleanup the old reference frame // Cleanup the old reference frame
deshake->ref = in; deshake->ref = in;