diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2012-10-07 20:52:35 -0400 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2012-11-01 11:29:13 -0400 |
commit | a4202003b21ee88c82eec909a0ad086b4c328903 (patch) | |
tree | a81ada2a086a824a7ba524c1c4dbb122562c85de | |
parent | 0366664ef9af85ee052925f9a1a853d14d2f47a7 (diff) | |
download | ffmpeg-a4202003b21ee88c82eec909a0ad086b4c328903.tar.gz |
dca_parser: allow the parser to change the sample rate
-rw-r--r-- | libavcodec/dca_parser.c | 3 |
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; |