marking AVPaletteControl as deprecated due to thread saftey amongth other issues...
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 30 Sep 2006 18:16:38 +0000 (18:16 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 30 Sep 2006 18:16:38 +0000 (18:16 +0000)
Originally committed as revision 6397 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/avcodec.h

index de0d544..766a63b 100644 (file)
@@ -2086,6 +2086,7 @@ typedef struct AVPicture {
  * AVPaletteControl
  * This structure defines a method for communicating palette changes
  * between and demuxer and a decoder.
+ * this is totally broken, palette changes should be sent as AVPackets
  */
 #define AVPALETTE_SIZE 1024
 #define AVPALETTE_COUNT 256
@@ -2101,7 +2102,7 @@ typedef struct AVPaletteControl {
      * data is probably 6 bits in size and needs to be scaled */
     unsigned int palette[AVPALETTE_COUNT];
 
-} AVPaletteControl;
+} AVPaletteControl attribute_deprecated;
 
 typedef struct AVSubtitleRect {
     uint16_t x;