[FFmpeg-cvslog] avfilter/signalstats: fix different buffers for out frame if burn is enabled
Clément Bœsch
git at videolan.org
Wed Nov 26 21:58:49 CET 2014
ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Sun Nov 16 21:12:50 2014 +0100| [b424e67abf0dc9b5f8ca4d281baceee7d7b932f2] | committer: Clément Bœsch
avfilter/signalstats: fix different buffers for out frame if burn is enabled
This was the original intend.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b424e67abf0dc9b5f8ca4d281baceee7d7b932f2
---
libavfilter/vf_signalstats.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/libavfilter/vf_signalstats.c b/libavfilter/vf_signalstats.c
index 47545aa..8c6a2d6 100644
--- a/libavfilter/vf_signalstats.c
+++ b/libavfilter/vf_signalstats.c
@@ -294,8 +294,10 @@ static int filter_frame(AVFilterLink *link, AVFrame *in)
prev = s->frame_prev;
- if (s->outfilter != FILTER_NONE)
+ if (s->outfilter != FILTER_NONE) {
out = av_frame_clone(in);
+ av_frame_make_writable(out);
+ }
for (fil = 0; fil < FILT_NUMB; fil ++)
if ((s->filters & 1<<fil) && filters_def[fil].init)
More information about the ffmpeg-cvslog
mailing list