aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_signalstats.c
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2014-11-16 21:12:50 +0100
committerClément Bœsch <clement@stupeflix.com>2014-11-26 21:29:08 +0100
commitb424e67abf0dc9b5f8ca4d281baceee7d7b932f2 (patch)
treecc21bc8ecefd28fddc44a1f04a9a34288655a619 /libavfilter/vf_signalstats.c
parent36091742d182b3ad4411aae22682354b3834a974 (diff)
downloadffmpeg-b424e67abf0dc9b5f8ca4d281baceee7d7b932f2.tar.gz
avfilter/signalstats: fix different buffers for out frame if burn is enabled
This was the original intend.
Diffstat (limited to 'libavfilter/vf_signalstats.c')
-rw-r--r--libavfilter/vf_signalstats.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavfilter/vf_signalstats.c b/libavfilter/vf_signalstats.c
index 47545aa080..8c6a2d6bbd 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)