[FFmpeg-cvslog] af_hdcd: av_frame_free(out) if av_frame_copy_props() fails

Burt P git at videolan.org
Fri Aug 26 01:13:04 EEST 2016


ffmpeg | branch: master | Burt P <pburt0 at gmail.com> | Thu Aug 25 17:05:39 2016 -0500| [ec220a8c1ca5135681ae9a9bc8c4532ce67eea44] | committer: Burt P

af_hdcd: av_frame_free(out) if av_frame_copy_props() fails

Signed-off-by: Burt P <pburt0 at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ec220a8c1ca5135681ae9a9bc8c4532ce67eea44
---

 libavfilter/af_hdcd.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavfilter/af_hdcd.c b/libavfilter/af_hdcd.c
index 0360bc9..0272305 100644
--- a/libavfilter/af_hdcd.c
+++ b/libavfilter/af_hdcd.c
@@ -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;
     }



More information about the ffmpeg-cvslog mailing list