summaryrefslogtreecommitdiffstats
path: root/demux/codec_tags.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-03-09 08:49:56 +0100
committerwm4 <wm4@nowhere>2013-03-13 23:51:30 +0100
commitd8bde114fd9685111274713c03985c72de3377b1 (patch)
treea5bbfbc0423a557e559752d5bd9f5bf957d7415d /demux/codec_tags.c
parentba5fc1d5e6c7d0762cd051edc80011faa9ab6a6a (diff)
downloadmpv-d8bde114fd9685111274713c03985c72de3377b1.tar.bz2
mpv-d8bde114fd9685111274713c03985c72de3377b1.tar.xz
Prefix CODEC_ID_ with AV_
The old names have been deprecated a while ago, but were needed for supporting older ffmpeg/libav versions. The deprecated identifiers have been removed from recent Libav and FFmpeg git. This change breaks compatibility with Libav 0.8.x and equivalent FFmpeg releases.
Diffstat (limited to 'demux/codec_tags.c')
-rw-r--r--demux/codec_tags.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/demux/codec_tags.c b/demux/codec_tags.c
index 429da5582c..d1a6cee65f 100644
--- a/demux/codec_tags.c
+++ b/demux/codec_tags.c
@@ -349,7 +349,7 @@ static const char *lookup_tag(const struct mp_codec_tag *mp_table,
}
const struct AVCodecTag *av_tags[] = {av_table, NULL};
int id = av_codec_get_id(av_tags, tag);
- return id == CODEC_ID_NONE ? NULL : mp_codec_from_av_codec_id(id);
+ return id == AV_CODEC_ID_NONE ? NULL : mp_codec_from_av_codec_id(id);
}
void mp_set_video_codec_from_tag(struct sh_video *sh)