You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-23 21:54:53 +02:00
avcodec/parsers: Silence deprecation warnings
Slipped through because Clang (in contrast to GCC) does not warn about this. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -22,8 +22,11 @@
|
||||
#include "parser_internal.h"
|
||||
|
||||
#if FF_API_PARSER_PRIVATE
|
||||
#include "libavutil/internal.h"
|
||||
#include <assert.h>
|
||||
#include <stddef.h>
|
||||
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
#define CHECK_OFFSET(field, public_prefix) static_assert(offsetof(FFCodecParser, field) == offsetof(FFCodecParser, p.public_prefix ## field), "Wrong offsets")
|
||||
CHECK_OFFSET(codec_ids,);
|
||||
CHECK_OFFSET(priv_data_size,);
|
||||
@@ -31,6 +34,7 @@ CHECK_OFFSET(init, parser_);
|
||||
CHECK_OFFSET(parse, parser_);
|
||||
CHECK_OFFSET(close, parser_);
|
||||
CHECK_OFFSET(split,);
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
|
||||
extern const FFCodecParser ff_aac_parser;
|
||||
|
||||
Reference in New Issue
Block a user