[FFmpeg-cvslog] avfilter/avf_abitscope: make frame writable before writing to it

Paul B Mahol git at videolan.org
Fri Mar 4 15:07:04 EET 2022


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri Mar  4 13:45:19 2022 +0100| [806109841810da60e41499018090401529040fd8] | committer: Paul B Mahol

avfilter/avf_abitscope: make frame writable before writing to it

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

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

diff --git a/libavfilter/avf_abitscope.c b/libavfilter/avf_abitscope.c
index 982bcc6e61..e6415ddfbf 100644
--- a/libavfilter/avf_abitscope.c
+++ b/libavfilter/avf_abitscope.c
@@ -227,6 +227,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples)
     }
 
     if (s->mode == 1) {
+        av_frame_make_writable(s->outpicref);
         outpicref = av_frame_clone(s->outpicref);
         if (!outpicref)
             return AVERROR(ENOMEM);



More information about the ffmpeg-cvslog mailing list