# HG changeset patch # User aurel # Date 1173651398 0 # Node ID abbc781d608ab367b28252bd3b08fb49c48d57e7 # Parent 6d2157d1fc93cd1f7872d12fa0cd5a7a7c138320 use codec_get_id() instead of deprecated codec_get_[bmp/wav]_id() diff -r 6d2157d1fc93 -r abbc781d608a matroska.c --- a/matroska.c Sun Mar 11 03:36:17 2007 +0000 +++ b/matroska.c Sun Mar 11 22:16:38 2007 +0000 @@ -29,7 +29,7 @@ */ #include "avformat.h" -/* For codec_get_bmp_id and codec_get_wav_id. */ +/* For codec_get_id(). */ #include "riff.h" #include "intfloat_readwrite.h" @@ -2226,7 +2226,7 @@ p = (unsigned char *)track->codec_priv + 16; ((MatroskaVideoTrack *)track)->fourcc = (p[3] << 24) | (p[2] << 16) | (p[1] << 8) | p[0]; - codec_id = codec_get_bmp_id(((MatroskaVideoTrack *)track)->fourcc); + codec_id = codec_get_id(codec_bmp_tags, ((MatroskaVideoTrack *)track)->fourcc); } @@ -2242,7 +2242,7 @@ /* Offset of wFormatTag. Stored in LE. */ p = (unsigned char *)track->codec_priv; tag = (p[1] << 8) | p[0]; - codec_id = codec_get_wav_id(tag); + codec_id = codec_get_id(codec_wav_tags, tag); }