OSDN Git Service

dca_parser: don't overwrite the sample rate, it may not be correct
authorHendrik Leppkes <h.leppkes@gmail.com>
Wed, 30 Sep 2015 11:09:01 +0000 (13:09 +0200)
committerHendrik Leppkes <h.leppkes@gmail.com>
Tue, 20 Oct 2015 11:02:18 +0000 (13:02 +0200)
commit00ae5b401b24592a9f7019baada5b349152ee2fc
treee308342eb75667bdec299169971aab5aa0e2894a
parentde1b1a7da9e6ddf42447271e519099a88b389e4a
dca_parser: don't overwrite the sample rate, it may not be correct

The parser only reads the dca core sample rate, which is limited to a
maximum of 48000 Hz, while X96 and HD extensions can increase the sample
rate up to 192000 Hz.

This change prevents the parser and decoder fighting over the sample rate,
potentially confusing user applications. This also fixes sample rate
display of >48000Hz files with ffmpeg/ffprobe when using libdcadec.

Fixes ticket #4397
libavcodec/dca_parser.c