Commit 325ca8a6 authored by aurel's avatar aurel

Make ff_mkv_codec_tags lie entirely in .rodata section.

From: Diego 'Flameeyes' Pettenò < flameeyes _at_ gmail _dot_ com >


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@11440 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent be8f7537
...@@ -68,6 +68,6 @@ const CodecTags ff_mkv_codec_tags[]={ ...@@ -68,6 +68,6 @@ const CodecTags ff_mkv_codec_tags[]={
{"S_SSA" , CODEC_ID_SSA}, {"S_SSA" , CODEC_ID_SSA},
{"S_VOBSUB" , CODEC_ID_DVD_SUBTITLE}, {"S_VOBSUB" , CODEC_ID_DVD_SUBTITLE},
{NULL , CODEC_ID_NONE} {"" , CODEC_ID_NONE}
/* TODO: AC3-9/10 (?), Real, Musepack, Quicktime */ /* TODO: AC3-9/10 (?), Real, Musepack, Quicktime */
}; };
...@@ -181,7 +181,7 @@ typedef enum { ...@@ -181,7 +181,7 @@ typedef enum {
*/ */
typedef struct CodecTags{ typedef struct CodecTags{
const char *str; char str[16];
enum CodecID id; enum CodecID id;
}CodecTags; }CodecTags;
......
...@@ -2048,7 +2048,7 @@ matroska_read_header (AVFormatContext *s, ...@@ -2048,7 +2048,7 @@ matroska_read_header (AVFormatContext *s,
if (track->codec_id == NULL) if (track->codec_id == NULL)
continue; continue;
for(j=0; ff_mkv_codec_tags[j].str; j++){ for(j=0; ff_mkv_codec_tags[j].id != CODEC_ID_NONE; j++){
if(!strncmp(ff_mkv_codec_tags[j].str, track->codec_id, if(!strncmp(ff_mkv_codec_tags[j].str, track->codec_id,
strlen(ff_mkv_codec_tags[j].str))){ strlen(ff_mkv_codec_tags[j].str))){
codec_id= ff_mkv_codec_tags[j].id; codec_id= ff_mkv_codec_tags[j].id;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment