Signed-off-by: Ho Ming Shun <[email protected]>
---
libavcodec/mmaldec.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavcodec/mmaldec.c b/libavcodec/mmaldec.c
index 5b75a1e74d..96140bf53d 100644
--- a/libavcodec/mmaldec.c
+++ b/libavcodec/mmaldec.c
@@ -772,7 +772,9 @@ static int ffmmal_decode(AVCodecContext *avctx, void *data,
int *got_frame,
if (avctx->extradata_size && !ctx->extradata_sent) {
AVPacket pkt = {0};
+FF_DISABLE_DEPRECATION_WARNINGS
av_init_packet(&pkt);
+FF_ENABLE_DEPRECATION_WARNINGS
pkt.data = avctx->extradata;
pkt.size = avctx->extradata_size;
ctx->extradata_sent = 1;
--
2.33.0
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".