Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2016-05-05 01:23:23 +0300
committerJames Almer <jamrial@gmail.com>2016-05-05 01:23:23 +0300
commite3df56f5b4d5458e3e48d2291eed862faa699a04 (patch)
treec3d513c50abba376ec403d296eb20e1f48250700 /libavformat/dtsdec.c
parentbb7c55807090ee77621c4a4692d00a231b722e1a (diff)
avformat/dtsdec: reduce the scope of crctab
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/dtsdec.c')
-rw-r--r--libavformat/dtsdec.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/dtsdec.c b/libavformat/dtsdec.c
index 702a417e56..8c985b8877 100644
--- a/libavformat/dtsdec.c
+++ b/libavformat/dtsdec.c
@@ -38,7 +38,6 @@ static int dts_probe(AVProbeData *p)
int sum, max, pos, i;
int64_t diff = 0;
uint8_t hdr[12 + AV_INPUT_BUFFER_PADDING_SIZE] = { 0 };
- const AVCRC *crctab = av_crc_get_table(AV_CRC_16_CCITT);
for (pos = FFMIN(4096, p->buf_size); pos < p->buf_size - 2; pos += 2) {
int marker, sample_blocks, sample_rate, sr_code, framesize;
@@ -68,7 +67,7 @@ static int dts_probe(AVProbeData *p)
continue;
if (pos - 2 + hdr_size > p->buf_size)
continue;
- if (av_crc(crctab, 0xffff, buf + 3, hdr_size - 5))
+ if (av_crc(av_crc_get_table(AV_CRC_16_CCITT), 0xffff, buf + 3, hdr_size - 5))
continue;
if (pos == exss_nextpos)