*/
/**
- * @file mlp_parser.c
+ * @file libavcodec/mlp_parser.c
* MLP parser
*/
#include <stdint.h>
#include "libavutil/crc.h"
-#include "bitstream.h"
+#include "get_bits.h"
#include "parser.h"
#include "mlp_parser.h"
#include "mlp.h"
if (ff_mlp_read_major_sync(avctx, &mh, &gb) < 0)
goto lost_sync;
-#ifdef CONFIG_AUDIO_NONSHORT
avctx->bits_per_raw_sample = mh.group1_bits;
if (avctx->bits_per_raw_sample > 16)
avctx->sample_fmt = SAMPLE_FMT_S32;
-#endif
+ else
+ avctx->sample_fmt = SAMPLE_FMT_S16;
avctx->sample_rate = mh.group1_samplerate;
avctx->frame_size = mh.access_unit_size;
}
AVCodecParser mlp_parser = {
- { CODEC_ID_MLP },
+ { CODEC_ID_MLP, CODEC_ID_TRUEHD },
sizeof(MLPParseContext),
mlp_init,
mlp_parse,