X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fdtsdec.c;h=da0fb61a60aa90b1725f5c53f79fadb4a761a7f8;hb=53d2b69b72b0bac919f3083298d3ad914ea86735;hp=50b14c66356b61de99e581b5ba069d1e386f0273;hpb=036162a3787044cd82b6fa4e73eb56ddf2e57c96;p=ffmpeg diff --git a/libavformat/dtsdec.c b/libavformat/dtsdec.c index 50b14c66356..da0fb61a60a 100644 --- a/libavformat/dtsdec.c +++ b/libavformat/dtsdec.c @@ -50,9 +50,11 @@ static int dts_probe(AVProbeData *p) diff += FFABS(((int16_t)AV_RL16(buf)) - (int16_t)AV_RL16(buf-4)); /* regular bitstream */ - if (state == DCA_SYNCWORD_CORE_BE) + if (state == DCA_SYNCWORD_CORE_BE && + (bytestream_get_be16(&bufp) & 0xFC00) == 0xFC00) marker = 0; - else if (state == DCA_SYNCWORD_CORE_LE) + else if (state == DCA_SYNCWORD_CORE_LE && + (bytestream_get_be16(&bufp) & 0x00FC) == 0x00FC) marker = 1; /* 14 bits big-endian bitstream */