From a4202003b21ee88c82eec909a0ad086b4c328903 Mon Sep 17 00:00:00 2001 From: Justin Ruggles Date: Sun, 7 Oct 2012 20:52:35 -0400 Subject: dca_parser: allow the parser to change the sample rate --- libavcodec/dca_parser.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libavcodec/dca_parser.c') diff --git a/libavcodec/dca_parser.c b/libavcodec/dca_parser.c index 7e65d0ba84..ab235cf480 100644 --- a/libavcodec/dca_parser.c +++ b/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; -- cgit v1.2.3