diff options
author | James Almer <jamrial@gmail.com> | 2020-10-28 11:59:16 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2020-10-28 11:59:16 -0300 |
commit | 7f76974e7d42c492ff6978b9d72ff618e8e2ccab (patch) | |
tree | d0ca09a686036ae416fa2ad56fdd5c037908c867 /libavformat/codec2.c | |
parent | 3916af4d95835d74d347ca640c7b7ee17b38f529 (diff) |
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>
Diffstat (limited to 'libavformat/codec2.c')
-rw-r--r-- | libavformat/codec2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/codec2.c b/libavformat/codec2.c index 1f7f16a106..bf2fb4aa43 100644 --- a/libavformat/codec2.c +++ b/libavformat/codec2.c @@ -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; |