Commit 30ee9c6a authored by aurel's avatar aurel

simplify dpcm decoders declaration using a macro

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@10898 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 43c8c7c0
......@@ -294,46 +294,19 @@ static int dpcm_decode_frame(AVCodecContext *avctx,
return buf_size;
}
AVCodec roq_dpcm_decoder = {
"roq_dpcm",
CODEC_TYPE_AUDIO,
CODEC_ID_ROQ_DPCM,
sizeof(DPCMContext),
dpcm_decode_init,
NULL,
NULL,
dpcm_decode_frame,
#define DPCM_DECODER(id, name) \
AVCodec name ## _decoder = { \
#name, \
CODEC_TYPE_AUDIO, \
id, \
sizeof(DPCMContext), \
dpcm_decode_init, \
NULL, \
NULL, \
dpcm_decode_frame, \
};
AVCodec interplay_dpcm_decoder = {
"interplay_dpcm",
CODEC_TYPE_AUDIO,
CODEC_ID_INTERPLAY_DPCM,
sizeof(DPCMContext),
dpcm_decode_init,
NULL,
NULL,
dpcm_decode_frame,
};
AVCodec xan_dpcm_decoder = {
"xan_dpcm",
CODEC_TYPE_AUDIO,
CODEC_ID_XAN_DPCM,
sizeof(DPCMContext),
dpcm_decode_init,
NULL,
NULL,
dpcm_decode_frame,
};
AVCodec sol_dpcm_decoder = {
"sol_dpcm",
CODEC_TYPE_AUDIO,
CODEC_ID_SOL_DPCM,
sizeof(DPCMContext),
dpcm_decode_init,
NULL,
NULL,
dpcm_decode_frame,
};
DPCM_DECODER(CODEC_ID_INTERPLAY_DPCM, interplay_dpcm);
DPCM_DECODER(CODEC_ID_ROQ_DPCM, roq_dpcm);
DPCM_DECODER(CODEC_ID_SOL_DPCM, sol_dpcm);
DPCM_DECODER(CODEC_ID_XAN_DPCM, xan_dpcm);
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