diff options
| author | Tim Redfern <tim@eclectronics.org> | 2013-12-29 12:19:38 +0000 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2013-12-29 12:19:38 +0000 |
| commit | f7813a5324be39d13ab536c245d15dfc602a7849 (patch) | |
| tree | fad99148b88823d34a5df2f0a25881a002eb291b /ffmpeg/libavformat/tedcaptionsdec.c | |
| parent | b7a5a477b8ff4d4e3028b9dfb9a9df0a41463f92 (diff) | |
basic type mechanism working
Diffstat (limited to 'ffmpeg/libavformat/tedcaptionsdec.c')
| -rw-r--r-- | ffmpeg/libavformat/tedcaptionsdec.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ffmpeg/libavformat/tedcaptionsdec.c b/ffmpeg/libavformat/tedcaptionsdec.c index 048ba96..68063fa 100644 --- a/ffmpeg/libavformat/tedcaptionsdec.c +++ b/ffmpeg/libavformat/tedcaptionsdec.c @@ -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); @@ -340,7 +341,7 @@ static av_cold int tedcaptions_read_probe(AVProbeData *p) count++; } return count == FF_ARRAY_ELEMS(tags) ? AVPROBE_SCORE_MAX : - count ? AVPROBE_SCORE_MAX / 2 : 0; + count ? AVPROBE_SCORE_EXTENSION : 0; } static int tedcaptions_read_seek(AVFormatContext *avf, int stream_index, |
