1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

fix(ffmpeg) ignore deprecated warning (#3629)

This commit is contained in:
Amir Gonnen 2022-08-26 22:30:15 +03:00 committed by GitHub
parent 89e3a712cb
commit 00d92f152b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -520,7 +520,7 @@ static int ffmpeg_open_codec_context(int * stream_idx,
int ret;
int stream_index;
AVStream * st;
AVCodec * dec = NULL;
const AVCodec * dec = NULL;
AVDictionary * opts = NULL;
ret = av_find_best_stream(fmt_ctx, type, -1, -1, NULL, 0);
@ -764,7 +764,14 @@ static int ffmpeg_image_allocate(struct ffmpeg_context_s * ffmpeg_ctx)
}
/* initialize packet, set data to NULL, let the demuxer fill it */
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif
av_init_packet(&ffmpeg_ctx->pkt);
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif
ffmpeg_ctx->pkt.data = NULL;
ffmpeg_ctx->pkt.size = 0;