On 10/27/2013 04:16 AM, Anton Khirnov wrote:
> diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c
> index fd0bf33..80a1391 100644
> --- a/libavcodec/ac3dec.c
> +++ b/libavcodec/ac3dec.c
> @@ -1330,7 +1330,8 @@ static int ac3_decode_frame(AVCodecContext * avctx, 
> void *data,
>              if (av_crc(av_crc_get_table(AV_CRC_16_ANSI), 0, &buf[2],
>                         s->frame_size - 2)) {
>                  av_log(avctx, AV_LOG_ERROR, "frame CRC mismatch\n");
> -                err = AAC_AC3_PARSE_ERROR_CRC;
> +                if (avctx->err_recognition & AV_EF_EXPLODE)
> +                    err = AAC_AC3_PARSE_ERROR_CRC;
>              }
>          }
>      }

In this case particular case, err being set will trigger error
concealment. It seems like a good idea to do error concealment with just
AV_EF_CRCCHECK set, not only when AV_EF_EXPLODE is also set.

-Justin

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to