dca_parser: allow the parser to change the sample rate

pull/6/merge
Justin Ruggles 13 years ago
parent 0366664ef9
commit a4202003b2
  1. 3
      libavcodec/dca_parser.c

@ -192,8 +192,7 @@ static int dca_parse(AVCodecParserContext * s,
/* read the duration and sample rate from the frame header */
if (!dca_parse_params(buf, buf_size, &duration, &sample_rate)) {
s->duration = duration;
if (!avctx->sample_rate)
avctx->sample_rate = sample_rate;
avctx->sample_rate = sample_rate;
} else
s->duration = 0;

Loading…
Cancel
Save