matroska: improve declaration of video_stereo_* constant tables

pull/2/head
Aurelien Jacobs 14 years ago
parent b44bbf908d
commit 09525f7956
  1. 4
      libavformat/matroska.c
  2. 10
      libavformat/matroska.h

@ -100,7 +100,7 @@ const AVMetadataConv ff_mkv_metadata_conv[] = {
{ 0 }
};
const char const *matroska_video_stereo_mode[] = {
const char * const matroska_video_stereo_mode[MATROSKA_VIDEO_STEREO_MODE_COUNT] = {
"mono",
"left_right",
"bottom_top",
@ -118,7 +118,7 @@ const char const *matroska_video_stereo_mode[] = {
"block_rl",
};
const char const *matroska_video_stereo_plane[] = {
const char * const matroska_video_stereo_plane[MATROSKA_VIDEO_STEREO_PLANE_COUNT] = {
"left",
"right",
"background",

@ -240,13 +240,13 @@ typedef struct CodecMime{
/* max. depth in the EBML tree structure */
#define EBML_MAX_DEPTH 16
#define MATROSKA_VIDEO_STEREO_MODE_COUNT 15
#define MATROSKA_VIDEO_STEREO_PLANE_COUNT 3
extern const CodecTags ff_mkv_codec_tags[];
extern const CodecMime ff_mkv_mime_tags[];
extern const AVMetadataConv ff_mkv_metadata_conv[];
extern const char const *matroska_video_stereo_mode[];
extern const char const *matroska_video_stereo_plane[];
#define MATROSKA_VIDEO_STEREO_MODE_COUNT 15
#define MATROSKA_VIDEO_STEREO_PLANE_COUNT 3
extern const char * const matroska_video_stereo_mode[MATROSKA_VIDEO_STEREO_MODE_COUNT];
extern const char * const matroska_video_stereo_plane[MATROSKA_VIDEO_STEREO_PLANE_COUNT];
#endif /* AVFORMAT_MATROSKA_H */

Loading…
Cancel
Save