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:
parent
89e3a712cb
commit
00d92f152b
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user