1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-11-23 21:54:53 +02:00

libavcodec/codec2utils: remove codec2_version_from_extradata()

It's only used in the codec2 demuxers, and can be simplified with an AV_RB16()
call instead.

Suggested-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer
2020-10-28 11:59:16 -03:00
parent 3916af4d95
commit 7f76974e7d
2 changed files with 1 additions and 6 deletions

View File

@@ -110,7 +110,7 @@ static int codec2_read_header(AVFormatContext *s)
return ret;
}
version = codec2_version_from_extradata(st->codecpar->extradata);
version = AV_RB16(st->codecpar->extradata);
if ((version >> 8) != EXPECTED_CODEC2_MAJOR_VERSION) {
avpriv_report_missing_feature(s, "Major version %i", version >> 8);
return AVERROR_PATCHWELCOME;