@@ -20,7 +20,7 @@
#include "parser.h"
#include "get_bits.h"
-#include "libavformat/oma.h"
+#include "oma.h"
typedef struct Atrac3PlusParseContext {
ParseContext pc;
@@ -38,7 +38,7 @@ static int parse_sound_frame_header(Atrac3PlusParseContext *c,
return AVERROR_INVALIDDATA;
atrac_config = AV_RB16(&buf[2]);
- c->sample_rate = ff_oma_srate_tab[(atrac_config >> 13) & 7] * 100;
+ c->sample_rate = oma_srate_tab[(atrac_config >> 13) & 7] * 100;
c->channel_id = (atrac_config >> 10) & 7;
c->frame_size = ((atrac_config & 0x3FF) * 8) + 8;
@@ -120,8 +120,8 @@ static int ff_atrac3p_parse(AVCodecParserContext *s,
avctx->sample_rate = ctx->sample_rate;
avctx->block_align = ctx->frame_size;
avctx->bit_rate = ctx->sample_rate * ctx->frame_size * 8 / 2048;
- avctx->channels = ff_oma_chid_to_num_channels[ctx->channel_id - 1];
- avctx->channel_layout = ff_oma_chid_to_native_layout[ctx->channel_id - 1];
+ avctx->channels = oma_chid_to_num_channels[ctx->channel_id - 1];
+ avctx->channel_layout = oma_chid_to_native_layout[ctx->channel_id - 1];
next += hdr_bytes;
buf += hdr_bytes;
From: Misty De Meo <mistydemeo@gmail.com> --- libavcodec/atrac3plus_parser.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)