[FFmpeg-cvslog] lavfi: fix erroneous use of AV_PERM_PRESERVE in ff_inplace_start_frame.

Nicolas George git at videolan.org
Fri Aug 17 18:44:15 CEST 2012


ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Tue Aug 14 18:52:43 2012 +0200| [cc8104b9086d2951a8c47601117275fadc70bc02] | committer: Nicolas George

lavfi: fix erroneous use of AV_PERM_PRESERVE in ff_inplace_start_frame.

ff_inplace_start_frame looks useless anyway.

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

 libavfilter/video.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/video.c b/libavfilter/video.c
index 5a3bbb9..86332bc 100644
--- a/libavfilter/video.c
+++ b/libavfilter/video.c
@@ -173,7 +173,7 @@ int ff_inplace_start_frame(AVFilterLink *inlink, AVFilterBufferRef *inpicref)
     AVFilterBufferRef *outpicref = NULL, *for_next_filter;
     int ret = 0;
 
-    if ((inpicref->perms & AV_PERM_WRITE) && !(inpicref->perms & AV_PERM_PRESERVE)) {
+    if (inpicref->perms & AV_PERM_WRITE) {
         outpicref = avfilter_ref_buffer(inpicref, ~0);
         if (!outpicref)
             return AVERROR(ENOMEM);



More information about the ffmpeg-cvslog mailing list