Commit 19fa5aed authored by jbr's avatar jbr

AC-3 decoder, soc revision 55, Aug 17 12:25:24 2006 UTC by cloud9

Remove more unnecessary headers.
Codec initialization changed to use name => argument notation.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@9663 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 0732fd76
...@@ -24,13 +24,11 @@ ...@@ -24,13 +24,11 @@
#define ALT_BITSTREAM_READER #define ALT_BITSTREAM_READER
#include "avcodec.h"
#include "ac3tab.h" #include "ac3tab.h"
#include "ac3_decoder.h" #include "ac3_decoder.h"
#include "avcodec.h"
#include "bitstream.h" #include "bitstream.h"
#include "dsputil.h" #include "dsputil.h"
#include "avutil.h"
#include "common.h"
#define N 512 /* constant for IMDCT Block size */ #define N 512 /* constant for IMDCT Block size */
...@@ -1979,13 +1977,12 @@ static int ac3_decode_end(AVCodecContext *ctx) ...@@ -1979,13 +1977,12 @@ static int ac3_decode_end(AVCodecContext *ctx)
} }
AVCodec lgpl_ac3_decoder = { AVCodec lgpl_ac3_decoder = {
"ac3", .name = "ac3",
CODEC_TYPE_AUDIO, .type = CODEC_TYPE_AUDIO,
CODEC_ID_AC3, .id = CODEC_ID_AC3,
sizeof (AC3DecodeContext), .priv_data_size = sizeof (AC3DecodeContext),
ac3_decode_init, .init = ac3_decode_init,
NULL, .close = ac3_decode_end,
ac3_decode_end, .decode = ac3_decode_frame,
ac3_decode_frame,
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment