Browse Source

lavfi/deshake: remove unecessary check before unref.

tags/n1.1
Clément Bœsch 13 years ago
parent
commit
0678641b7c
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      libavfilter/vf_deshake.c

+ 1
- 2
libavfilter/vf_deshake.c 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
// motion of the next frame
if (deshake->ref != NULL)
avfilter_unref_buffer(deshake->ref);
avfilter_unref_buffer(deshake->ref);

// Cleanup the old reference frame
deshake->ref = in;


Loading…
Cancel
Save