[FFmpeg-soc] [soc]: r5692 - libavfilter/vf_drawbox.c

koorogi subversion at mplayerhq.hu
Sun Mar 21 01:00:06 CET 2010


Author: koorogi
Date: Sun Mar 21 01:00:05 2010
New Revision: 5692

Log:
Reject the correct permissions in the drawbox filter.
Reusing a buffer isn't a problem for the filter, but relying on it not
overwriting the buffer is.  Caused visual corruption with direct rendering.

Modified:
   libavfilter/vf_drawbox.c

Modified: libavfilter/vf_drawbox.c
==============================================================================
--- libavfilter/vf_drawbox.c	Sun Mar 21 01:00:03 2010	(r5691)
+++ libavfilter/vf_drawbox.c	Sun Mar 21 01:00:05 2010	(r5692)
@@ -144,8 +144,7 @@ AVFilter avfilter_vf_drawbox=
                                     .config_props    = config_input,
                                     .min_perms       = AV_PERM_WRITE |
                                                        AV_PERM_READ,
-                                    .rej_perms       = AV_PERM_REUSE |
-                                                       AV_PERM_REUSE2},
+                                    .rej_perms       = AV_PERM_PRESERVE },
                                   { .name = NULL}},
     .outputs   = (AVFilterPad[]) {{ .name            = "default",
                                     .type            = CODEC_TYPE_VIDEO, },


More information about the FFmpeg-soc mailing list