mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-05 22:40:09 +01: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"
|
#include "parser_internal.h"
|
||||||
|
|
||||||
#if FF_API_PARSER_PRIVATE
|
#if FF_API_PARSER_PRIVATE
|
||||||
|
#include "libavutil/internal.h"
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stddef.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")
|
#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(codec_ids,);
|
||||||
CHECK_OFFSET(priv_data_size,);
|
CHECK_OFFSET(priv_data_size,);
|
||||||
@@ -31,6 +34,7 @@ CHECK_OFFSET(init, parser_);
|
|||||||
CHECK_OFFSET(parse, parser_);
|
CHECK_OFFSET(parse, parser_);
|
||||||
CHECK_OFFSET(close, parser_);
|
CHECK_OFFSET(close, parser_);
|
||||||
CHECK_OFFSET(split,);
|
CHECK_OFFSET(split,);
|
||||||
|
FF_ENABLE_DEPRECATION_WARNINGS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern const FFCodecParser ff_aac_parser;
|
extern const FFCodecParser ff_aac_parser;
|
||||||
|
|||||||
Reference in New Issue
Block a user