From 4b9ddc69a0c0baed309e7a277bb8e14e4edf3fe1 Mon Sep 17 00:00:00 2001 From: reimar Date: Sun, 21 Jan 2007 15:44:58 +0000 Subject: Simplify by using av_codec_get_id and include riff.h only in demux_lavf.c git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21984 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/ae_lavc.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'libmpcodecs') diff --git a/libmpcodecs/ae_lavc.c b/libmpcodecs/ae_lavc.c index 01f7f26327..a62740f102 100644 --- a/libmpcodecs/ae_lavc.c +++ b/libmpcodecs/ae_lavc.c @@ -31,12 +31,10 @@ static int compressed_frame_size = 0; #if defined(USE_LIBAVFORMAT) || defined(USE_LIBAVFORMAT_SO) #ifdef USE_LIBAVFORMAT_SO #include -#include #else #include "libavformat/avformat.h" -#include "libavformat/riff.h" #endif -extern const AVCodecTag mp_wav_tags[]; +extern const struct AVCodecTag *mp_wav_taglists[]; #endif static int bind_lavc(audio_encoder_t *encoder, muxer_stream_t *mux_a) @@ -182,9 +180,7 @@ int mpae_init_lavc(audio_encoder_t *encoder) if(lavc_param_atag == 0) { #if defined(USE_LIBAVFORMAT) || defined(USE_LIBAVFORMAT_SO) - lavc_param_atag = codec_get_wav_tag(lavc_acodec->id); - if(!lavc_param_atag) - lavc_param_atag = codec_get_tag(mp_wav_tags, lavc_acodec->id); + lavc_param_atag = av_codec_get_tag(mp_wav_taglists, lavc_acodec->id); #else lavc_param_atag = lavc_find_atag(lavc_param_acodec); #endif -- cgit v1.2.3