You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
dca_parser: allow the parser to change the sample rate
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user