summaryrefslogtreecommitdiffstats
path: root/libmpdemux/muxer_lavf.c
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 /libmpdemux/muxer_lavf.c
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 'libmpdemux/muxer_lavf.c')
-rw-r--r--libmpdemux/muxer_lavf.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/libmpdemux/muxer_lavf.c b/libmpdemux/muxer_lavf.c
index 603a032085..b10ea65147 100644
--- a/libmpdemux/muxer_lavf.c
+++ b/libmpdemux/muxer_lavf.c
@@ -22,9 +22,9 @@
#else
#include "avformat.h"
#endif
-#include "libavformat/riff.h"
-extern const AVCodecTag mp_wav_tags[];
+extern const struct AVCodecTag *mp_wav_taglists[];
+extern const struct AVCodecTag *mp_bmp_taglists[];
extern char *info_name;
extern char *info_artist;
@@ -207,9 +207,7 @@ static void fix_parameters(muxer_stream_t *stream)
if(stream->type == MUXER_TYPE_AUDIO)
{
- ctx->codec_id = codec_get_wav_id(stream->wf->wFormatTag);
- if(!ctx->codec_id)
- ctx->codec_id = codec_get_id(mp_wav_tags, stream->wf->wFormatTag);
+ ctx->codec_id = av_codec_get_id(mp_wav_taglists, stream->wf->wFormatTag);
#if 0 //breaks aac in mov at least
ctx->codec_tag = codec_get_wav_tag(ctx->codec_id);
#endif
@@ -238,7 +236,7 @@ static void fix_parameters(muxer_stream_t *stream)
}
else if(stream->type == MUXER_TYPE_VIDEO)
{
- ctx->codec_id = codec_get_bmp_id(stream->bih->biCompression);
+ ctx->codec_id = av_codec_get_id(mp_bmp_taglists, stream->bih->biCompression);
if(ctx->codec_id <= 0 || force_fourcc)
ctx->codec_tag= stream->bih->biCompression;
mp_msg(MSGT_MUXER, MSGL_INFO, "VIDEO CODEC ID: %d\n", ctx->codec_id);