af_hdcd: av_frame_free(out) if av_frame_copy_props() fails
authorBurt P <pburt0@gmail.com>
Thu, 25 Aug 2016 22:05:39 +0000 (17:05 -0500)
committerBurt P <pburt0@gmail.com>
Thu, 25 Aug 2016 22:12:16 +0000 (17:12 -0500)
Signed-off-by: Burt P <pburt0@gmail.com>
libavfilter/af_hdcd.c

index 0360bc9..0272305 100644 (file)
@@ -1655,6 +1655,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
     }
     result = av_frame_copy_props(out, in);
     if (result) {
+        av_frame_free(&out);
         av_frame_free(&in);
         return result;
     }