summaryrefslogtreecommitdiff
path: root/libavcodec/dca_parser.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-10-07 20:52:35 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2012-11-01 11:29:13 -0400
commita4202003b21ee88c82eec909a0ad086b4c328903 (patch)
treea81ada2a086a824a7ba524c1c4dbb122562c85de /libavcodec/dca_parser.c
parent0366664ef9af85ee052925f9a1a853d14d2f47a7 (diff)
dca_parser: allow the parser to change the sample rate
Diffstat (limited to 'libavcodec/dca_parser.c')
-rw-r--r--libavcodec/dca_parser.c3
1 files changed, 1 insertions, 2 deletions
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;