Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-06-14 18:13:51 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2016-06-14 19:08:56 +0300
commitfa0097e008a145ea8324879d4e24c1881bb86279 (patch)
tree5f17dc21c82d8da0c17e03d07073665886ae7aa5 /libavfilter/vf_telecine.c
parentede4ec1f8f5fd94dccd880199419a1f1b8137ab6 (diff)
avfilter/vf_telecine: Make frame writable before writing into it
Fixes Ticket 5627 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavfilter/vf_telecine.c')
-rw-r--r--libavfilter/vf_telecine.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/vf_telecine.c b/libavfilter/vf_telecine.c
index 182c670849..58babca9a1 100644
--- a/libavfilter/vf_telecine.c
+++ b/libavfilter/vf_telecine.c
@@ -190,6 +190,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpicref)
}
if (s->occupied) {
+ av_frame_make_writable(s->frame[nout]);
for (i = 0; i < s->nb_planes; i++) {
// fill in the EARLIER field from the buffered pic
av_image_copy_plane(s->frame[nout]->data[i] + s->frame[nout]->linesize[i] * s->first_field,
@@ -213,6 +214,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpicref)
while (len >= 2) {
// output THIS image as-is
+ av_frame_make_writable(s->frame[nout]);
for (i = 0; i < s->nb_planes; i++)
av_image_copy_plane(s->frame[nout]->data[i], s->frame[nout]->linesize[i],
inpicref->data[i], inpicref->linesize[i],