blob: 313b0c72756910f68abb801f9845dbe1ed030bc9 [file] [log] [blame]
/*
* MLP dummy decoder
*/
#include <stdint.h>
#include "avcodec.h"
#include "bitstream.h"
static av_cold int mlp_decode_dummy_init(AVCodecContext *avctx)
{
return 0;
}
/** Read an access unit from the stream.
* Returns < 0 on error, 0 if not enough data is present in the input stream
* otherwise returns the number of bytes consumed. */
static int read_access_unit_dummy(AVCodecContext *avctx, void* data, int *data_size,
const uint8_t *buf, int buf_size)
{
return 0;
}
#if CONFIG_MLPDUMMY_DECODER
AVCodec mlpdummy_decoder = {
"mlp",
CODEC_TYPE_AUDIO,
CODEC_ID_MLP,
0,
mlp_decode_dummy_init,
NULL,
NULL,
read_access_unit_dummy,
.long_name = NULL_IF_CONFIG_SMALL("MLP (Meridian Lossless Packing)-Dummy"),
};
#endif /* CONFIG_MLP_DECODER */
#if CONFIG_TRUEHDDUMMY_DECODER
AVCodec truehddummy_decoder = {
"truehd",
CODEC_TYPE_AUDIO,
CODEC_ID_TRUEHD,
0,
mlp_decode_dummy_init,
NULL,
NULL,
read_access_unit_dummy,
.long_name = NULL_IF_CONFIG_SMALL("TrueHD-Dummy"),
};
#endif /* CONFIG_TRUEHD_DECODER */