summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavfilter/vf_tinterlace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_tinterlace.c b/libavfilter/vf_tinterlace.c
index 559f64b25b..5b03b81bf1 100644
--- a/libavfilter/vf_tinterlace.c
+++ b/libavfilter/vf_tinterlace.c
@@ -294,7 +294,7 @@ static int end_frame(AVFilterLink *inlink)
break;
case MODE_INTERLACEX2: /* re-interlace preserving image height, double frame rate */
/* output current frame first */
- out = avfilter_ref_buffer(cur, AV_PERM_READ);
+ out = avfilter_ref_buffer(cur, ~AV_PERM_WRITE);
out->video->interlaced = 1;
ff_start_frame(outlink, out);