On Tue, Oct 23, 2012 at 05:43:18PM -0400, Justin Ruggles wrote:
> ---
>  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 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;
>  
> -- 

LGTM (I wonder what happens when we support extensions like X96k properly but
that's outside the scope of this patch)
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to