diff ac3dec.c @ 7769:e5f7a43f63ae libavcodec

create a separate codec_id for E-AC-3
author jbr
date Mon, 01 Sep 2008 14:33:54 +0000
parents 2994fe74068f
children 8195c970d077
line wrap: on
line diff
--- a/ac3dec.c	Mon Sep 01 11:19:26 2008 +0000
+++ b/ac3dec.c	Mon Sep 01 14:33:54 2008 +0000
@@ -1288,5 +1288,16 @@
     .init = ac3_decode_init,
     .close = ac3_decode_end,
     .decode = ac3_decode_frame,
-    .long_name = NULL_IF_CONFIG_SMALL("ATSC A/52 (AC-3, E-AC-3)"),
+    .long_name = NULL_IF_CONFIG_SMALL("ATSC A/52A (AC-3)"),
 };
+
+AVCodec eac3_decoder = {
+    .name = "eac3",
+    .type = CODEC_TYPE_AUDIO,
+    .id = CODEC_ID_EAC3,
+    .priv_data_size = sizeof (AC3DecodeContext),
+    .init = ac3_decode_init,
+    .close = ac3_decode_end,
+    .decode = ac3_decode_frame,
+    .long_name = NULL_IF_CONFIG_SMALL("ATSC A/52B (AC-3, E-AC-3)"),
+};