X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavutil%2Fbuffer_internal.h;h=70d2615a063791e84f5d9654aec21b86d6d13e61;hb=6fb2bdd1d01097a76ea6b2b81d02edb7278a5e29;hp=54b67047e5e54d8ea54ca0567c067ea42200832a;hpb=f05f210526a3dc2d9fa6b1c228e3907ebd1d43c6;p=ffmpeg diff --git a/libavutil/buffer_internal.h b/libavutil/buffer_internal.h index 54b67047e5e..70d2615a063 100644 --- a/libavutil/buffer_internal.h +++ b/libavutil/buffer_internal.h @@ -25,14 +25,10 @@ #include "buffer.h" #include "thread.h" -/** - * The buffer is always treated as read-only. - */ -#define BUFFER_FLAG_READONLY (1 << 0) /** * The buffer was av_realloc()ed, so it is reallocatable. */ -#define BUFFER_FLAG_REALLOCATABLE (1 << 1) +#define BUFFER_FLAG_REALLOCATABLE (1 << 0) struct AVBuffer { uint8_t *data; /**< data described by this buffer */ @@ -54,9 +50,14 @@ struct AVBuffer { void *opaque; /** - * A combination of BUFFER_FLAG_* + * A combination of AV_BUFFER_FLAG_* */ int flags; + + /** + * A combination of BUFFER_FLAG_* + */ + int flags_internal; }; typedef struct BufferPoolEntry {