Commit a4202003 authored by Justin Ruggles's avatar Justin Ruggles

dca_parser: allow the parser to change the sample rate

parent 0366664e
...@@ -192,8 +192,7 @@ static int dca_parse(AVCodecParserContext * s, ...@@ -192,8 +192,7 @@ static int dca_parse(AVCodecParserContext * s,
/* read the duration and sample rate from the frame header */ /* read the duration and sample rate from the frame header */
if (!dca_parse_params(buf, buf_size, &duration, &sample_rate)) { if (!dca_parse_params(buf, buf_size, &duration, &sample_rate)) {
s->duration = duration; s->duration = duration;
if (!avctx->sample_rate) avctx->sample_rate = sample_rate;
avctx->sample_rate = sample_rate;
} else } else
s->duration = 0; s->duration = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment