fix(ffmpeg) ignore deprecated warning
@@ -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;
