[FFmpeg-cvslog] lavc: undeprecate AVPALETTE_SIZE and AVPALETTE_COUNT macros

Anton Khirnov git at videolan.org
Wed Sep 21 21:34:04 CEST 2011


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Thu Sep  1 16:40:18 2011 +0200| [63e4c8a65316bb897f2c80cdac66b6f172c0f849] | committer: Anton Khirnov

lavc: undeprecate AVPALETTE_SIZE and AVPALETTE_COUNT macros

They are still being used and shouldn't be removed.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=63e4c8a65316bb897f2c80cdac66b6f172c0f849
---

 libavcodec/avcodec.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 7fc0e54..a7defa0 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -3082,6 +3082,8 @@ typedef struct AVPicture {
     int linesize[4];       ///< number of bytes per line
 } AVPicture;
 
+#define AVPALETTE_SIZE 1024
+#define AVPALETTE_COUNT 256
 #if FF_API_PALETTE_CONTROL
 /**
  * AVPaletteControl
@@ -3091,8 +3093,6 @@ typedef struct AVPicture {
  * @deprecated Use AVPacket to send palette changes instead.
  * This is totally broken.
  */
-#define AVPALETTE_SIZE 1024
-#define AVPALETTE_COUNT 256
 typedef struct AVPaletteControl {
 
     /* Demuxer sets this to 1 to indicate the palette has changed;



More information about the ffmpeg-cvslog mailing list