changeset 2793:d5842afe8539 libavformat

Make ff_mkv_codec_tags array const, it is never written.
author reimar
date Sun, 02 Dec 2007 21:52:43 +0000
parents e0a046abae56
children b556182542cb
files matroska.c matroska.h
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/matroska.c	Sun Dec 02 17:51:05 2007 +0000
+++ b/matroska.c	Sun Dec 02 21:52:43 2007 +0000
@@ -21,7 +21,7 @@
 
 #include "matroska.h"
 
-CodecTags ff_mkv_codec_tags[]={
+const CodecTags ff_mkv_codec_tags[]={
 //    {"V_MS/VFW/FOURCC"  , CODEC_ID_NONE},
     {"V_UNCOMPRESSED"   , CODEC_ID_RAWVIDEO},
     {"V_MPEG4/ISO/ASP"  , CODEC_ID_MPEG4},
--- a/matroska.h	Sun Dec 02 17:51:05 2007 +0000
+++ b/matroska.h	Sun Dec 02 21:52:43 2007 +0000
@@ -191,6 +191,6 @@
 /* max. depth in the EBML tree structure */
 #define EBML_MAX_DEPTH 16
 
-extern CodecTags ff_mkv_codec_tags[];
+extern const CodecTags ff_mkv_codec_tags[];
 
 #endif /* FFMPEG_MATROSKA_H */