X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavutil%2Fbuffer_internal.h;h=70d2615a063791e84f5d9654aec21b86d6d13e61;hb=cae57cae1f70371591223a5f9fe3f370ce8dfd50;hp=54b67047e5e54d8ea54ca0567c067ea42200832a;hpb=a2ae381b5a6f50669bcbd37001c110567a61f446;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 {