summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-01-21 15:44:58 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-01-21 15:44:58 +0000
commit4b9ddc69a0c0baed309e7a277bb8e14e4edf3fe1 (patch)
tree7fd2c9187bf24bc7b4f976c423469c3046b56ca4 /libmpcodecs
parentc300337919c98b15cb534191a62196e7d340f319 (diff)
downloadmpv-4b9ddc69a0c0baed309e7a277bb8e14e4edf3fe1.tar.bz2
mpv-4b9ddc69a0c0baed309e7a277bb8e14e4edf3fe1.tar.xz
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
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/ae_lavc.c8
1 files changed, 2 insertions, 6 deletions
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 <ffmpeg/avformat.h>
-#include <ffmpeg/riff.h>
#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