summaryrefslogtreecommitdiff
path: root/libavcodec/qpeg.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2023-05-17 22:39:57 -0300
committerJames Almer <jamrial@gmail.com>2023-05-18 08:45:23 -0300
commit63767b79a570404628b2521b83104108b7b6884c (patch)
treeba05301188d4deb51854721e0e60bfca4edb0323 /libavcodec/qpeg.c
parent01d9a84ef58c2d0d89958b18420483b058ac9dd1 (diff)
avutil/frame: deprecate palette_has_changed
Not only this is information that relies on the concept of a sequence of frames, which is completely out of place as a field in AVFrame, but there are no known or intended uses of this field. Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/qpeg.c')
-rw-r--r--libavcodec/qpeg.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/libavcodec/qpeg.c b/libavcodec/qpeg.c
index 43a24fab08..1f76ebc5a1 100644
--- a/libavcodec/qpeg.c
+++ b/libavcodec/qpeg.c
@@ -297,7 +297,14 @@ static int decode_frame(AVCodecContext *avctx, AVFrame *p,
}
/* make the palette available on the way out */
- p->palette_has_changed = ff_copy_palette(a->pal, avpkt, avctx);
+#if FF_API_PALETTE_HAS_CHANGED
+FF_DISABLE_DEPRECATION_WARNINGS
+ p->palette_has_changed =
+#endif
+ ff_copy_palette(a->pal, avpkt, avctx);
+#if FF_API_PALETTE_HAS_CHANGED
+FF_ENABLE_DEPRECATION_WARNINGS
+#endif
memcpy(p->data[1], a->pal, AVPALETTE_SIZE);
av_frame_unref(ref);