[FFmpeg-cvslog] dca_parser: allow the parser to change the sample rate

Justin Ruggles git at videolan.org
Fri Nov 2 13:49:11 CET 2012


ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Sun Oct  7 20:52:35 2012 -0400| [a4202003b21ee88c82eec909a0ad086b4c328903] | committer: Justin Ruggles

dca_parser: allow the parser to change the sample rate

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a4202003b21ee88c82eec909a0ad086b4c328903
---

 libavcodec/dca_parser.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavcodec/dca_parser.c b/libavcodec/dca_parser.c
index 7e65d0b..ab235cf 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;
 



More information about the ffmpeg-cvslog mailing list