Skip to content
Snippets Groups Projects
Commit 2b501b55 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

avformat/dtsdec: skip the first 4k in dts_probe()


DTS primarly needs to be separated from PCM, and PCM can contain cliping and
overshoots at the very start which can mimic DTS headers.

If this isnt sufficient then more of the DTS stream has to be decoded
and analyzed

Fixes ticket3784

Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent e6fabd6e
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,7 @@ static int dts_probe(AVProbeData *p)
int sum, max, i;
int64_t diff = 0;
buf = p->buf;
buf = p->buf + FFMIN(4096, p->buf_size);
for(; buf < (p->buf+p->buf_size)-2; buf+=2) {
bufp = buf;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment