mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 19:30:05 +00:00
Prefer enum CodecID over int in ff_codec_get_tag().
Originally committed as revision 23249 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
85e86b6810
commit
83c2707908
@ -47,7 +47,7 @@ void ff_get_wav_header(ByteIOContext *pb, AVCodecContext *codec, int size);
|
||||
extern const AVCodecTag ff_codec_bmp_tags[];
|
||||
extern const AVCodecTag ff_codec_wav_tags[];
|
||||
|
||||
unsigned int ff_codec_get_tag(const AVCodecTag *tags, int id);
|
||||
unsigned int ff_codec_get_tag(const AVCodecTag *tags, enum CodecID id);
|
||||
enum CodecID ff_codec_get_id(const AVCodecTag *tags, unsigned int tag);
|
||||
void ff_parse_specific_params(AVCodecContext *stream, int *au_rate, int *au_ssize, int *au_scale);
|
||||
|
||||
|
@ -2024,7 +2024,7 @@ static int try_decode_frame(AVStream *st, AVPacket *avpkt)
|
||||
return ret;
|
||||
}
|
||||
|
||||
unsigned int ff_codec_get_tag(const AVCodecTag *tags, int id)
|
||||
unsigned int ff_codec_get_tag(const AVCodecTag *tags, enum CodecID id)
|
||||
{
|
||||
while (tags->id != CODEC_ID_NONE) {
|
||||
if (tags->id == id)
|
||||
|
Loading…
Reference in New Issue
Block a user