[FFmpeg-cvslog] libxvid: Add const qualifier to silence compiler warning.

Diego Biurrun git at videolan.org
Sun Jul 10 04:33:42 CEST 2011


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Thu Jul  7 01:31:04 2011 +0200| [d8dbe20241558a1b4439ac33120caa4dafebf418] | committer: Diego Biurrun

libxvid: Add const qualifier to silence compiler warning.

libavcodec/libxvidff.c:752: warning: initialization discards qualifiers from pointer target type

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

 libavcodec/libxvidff.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/libxvidff.c b/libavcodec/libxvidff.c
index fd0aea5..3ca4d1b 100644
--- a/libavcodec/libxvidff.c
+++ b/libavcodec/libxvidff.c
@@ -749,7 +749,7 @@ static int xvid_ff_2pass_before(struct xvid_context *ref,
 static int xvid_ff_2pass_after(struct xvid_context *ref,
                                 xvid_plg_data_t *param) {
     char *log = ref->twopassbuffer;
-    char *frame_types = " ipbs";
+    const char *frame_types = " ipbs";
     char frame_type;
 
     /* Quick bounds check */



More information about the ffmpeg-cvslog mailing list