attribute_deprecated triggers a heavy amount of warning in every use
of the structure when Libav is compiled with gcc, rather than clang.

Move the notice in the documentation section instead.

Signed-off-by: Vittorio Giovara <[email protected]>
---
 libavcodec/avcodec.h | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 0876343..9b832f3 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -3174,10 +3174,8 @@ typedef struct AVHWAccel {
  */
 
 /**
- * four components are given, that's all.
- * the last component is alpha
+ * @deprecated use AVFrame or imgutils functions instead
  */
-attribute_deprecated
 typedef struct AVPicture {
     uint8_t *data[AV_NUM_DATA_POINTERS];
     int linesize[AV_NUM_DATA_POINTERS];     ///< number of bytes per line
-- 
1.9.5 (Apple Git-50.3)

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to