[FFmpeg-devel] [PATCH 3/3] In ff_get_ref_perms_string() use 'u' and 'U' for representing AV_PERM_REUSE and AV_PERM_REUSE2 flags, avoid conflict with the char 'r' used for AV_PERM_READ.

Stefano Sabatini stefano.sabatini-lala
Fri Nov 12 15:10:12 CET 2010


---
 libavfilter/avfilter.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index e8f536a..a761c81 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -201,8 +201,8 @@ char *ff_get_ref_perms_string(char *buf, size_t buf_size, int perms)
              perms & AV_PERM_READ      ? "r" : "",
              perms & AV_PERM_WRITE     ? "w" : "",
              perms & AV_PERM_PRESERVE  ? "p" : "",
-             perms & AV_PERM_REUSE     ? "r" : "",
-             perms & AV_PERM_REUSE2    ? "R" : "");
+             perms & AV_PERM_REUSE     ? "u" : "",
+             perms & AV_PERM_REUSE2    ? "U" : "");
     return buf;
 }
 
-- 
1.7.1




More information about the ffmpeg-devel mailing list