[FFmpeg-devel] [PATCH] [RFC] E-AC-3 vs. AC-3 separation

Diego Biurrun diego
Wed Jul 22 17:16:28 CEST 2009


On Tue, Jul 21, 2009 at 11:09:49AM +0200, Diego Biurrun wrote:
> Here is a feeble attempt to separate the E-AC-3 and the AC-3 decoders.
> I have the nagging feeling that it might not be quite so easy, but it
> could be a start..
> 
> --- libavcodec/ac3dec.c	(revision 19477)
> +++ libavcodec/ac3dec.c	(working copy)
> @@ -314,9 +314,12 @@
>          s->skip_syntax           = 1;
>          memset(s->channel_uses_aht, 0, sizeof(s->channel_uses_aht));
>          return ac3_parse_header(s);
> -    } else {
> +    } else if (CONFIG_EAC3_DECODER) {
>          s->eac3 = 1;
>          return ff_eac3_parse_header(s);
> +    } else {
> +        av_log(s->avctx, AV_LOG_ERROR, "E-AC-3 support not compiled in\n");
> +        return -1;

I wonder why this does not get printed when playing E-AC-3 content with
the E-AC-3 decoder disabled?  Can anybody shine a light on this?

Diego



More information about the ffmpeg-devel mailing list