[FFmpeg-soc] [soc]: r4258 - libavfilter/vsrc_movie.c

vitor subversion at mplayerhq.hu
Fri May 8 12:11:47 CEST 2009


Author: vitor
Date: Fri May  8 12:11:47 2009
New Revision: 4258

Log:
Set the correct permissions for the video buffer.

Patch by Martin Storsjö - $firstname@$firstname.st

Modified:
   libavfilter/vsrc_movie.c

Modified: libavfilter/vsrc_movie.c
==============================================================================
--- libavfilter/vsrc_movie.c	Fri May  8 11:59:17 2009	(r4257)
+++ libavfilter/vsrc_movie.c	Fri May  8 12:11:47 2009	(r4258)
@@ -190,7 +190,9 @@ int movie_get_frame(AVFilterLink *link)
     if (mv->is_done == 1) return 0;
 
     if(!mv->pic)
-        mv->pic = avfilter_get_video_buffer(link, AV_PERM_WRITE );
+        mv->pic = avfilter_get_video_buffer(link, AV_PERM_WRITE |
+                                                  AV_PERM_PRESERVE |
+                                                  AV_PERM_REUSE2);
     //av_log(link->src, AV_LOG_INFO, "movie_get_frame() w:%d h:%d\n", mv->w, mv->h);
 
     // Get frame


More information about the FFmpeg-soc mailing list