]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/af_volume.c
lavfi: guess a timestamp for compat status change.
[ffmpeg] / libavfilter / af_volume.c
index 9ed2dbace36122c48ed71757325b96a99a107d76..3d76f12f2cc6647dc12af5f638978e4145e849d2 100644 (file)
@@ -411,8 +411,10 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
         out_buf = buf;
     } else {
         out_buf = ff_get_audio_buffer(inlink, nb_samples);
-        if (!out_buf)
+        if (!out_buf) {
+            av_frame_free(&buf);
             return AVERROR(ENOMEM);
+        }
         ret = av_frame_copy_props(out_buf, buf);
         if (ret < 0) {
             av_frame_free(&out_buf);