Browse Source

avformat/tedcaptionsdec: make const arrays static const

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.1
Michael Niedermayer 11 years ago
parent
commit
db4918b72e
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavformat/tedcaptionsdec.c

+ 2
- 1
libavformat/tedcaptionsdec.c View File

@@ -153,7 +153,8 @@ static int parse_label(AVIOContext *pb, int *cur_byte, AVBPrint *bp)

static int parse_boolean(AVIOContext *pb, int *cur_byte, int *result)
{
const char *text[] = { "false", "true" }, *p;
static const char * const text[] = { "false", "true" };
const char *p;
int i;

skip_spaces(pb, cur_byte);


Loading…
Cancel
Save