Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Xidorn Quan authored on 2013/03/30 00:15:19... | ... |
@@ -125,6 +125,11 @@ int av_buffer_is_writable(const AVBufferRef *buf) |
125 | 125 |
return avpriv_atomic_int_get(&buf->buffer->refcount) == 1; |
126 | 126 |
} |
127 | 127 |
|
128 |
+void *av_buffer_get_opaque(const AVBufferRef *buf) |
|
129 |
+{ |
|
130 |
+ return buf->buffer->opaque; |
|
131 |
+} |
|
132 |
+ |
|
128 | 133 |
int av_buffer_make_writable(AVBufferRef **pbuf) |
129 | 134 |
{ |
130 | 135 |
AVBufferRef *newbuf, *buf = *pbuf; |
... | ... |
@@ -122,7 +122,7 @@ AVBufferRef *av_buffer_allocz(int size); |
122 | 122 |
* @param data data array |
123 | 123 |
* @param size size of data in bytes |
124 | 124 |
* @param free a callback for freeing data |
125 |
- * @param opaque parameter to be passed to free |
|
125 |
+ * @param opaque parameter to be got for processing or passed to free |
|
126 | 126 |
* @param flags a combination of AV_BUFFER_FLAG_* |
127 | 127 |
* |
128 | 128 |
* @return an AVBufferRef referring to data on success, NULL on failure. |
... | ... |
@@ -163,6 +163,11 @@ void av_buffer_unref(AVBufferRef **buf); |
163 | 163 |
int av_buffer_is_writable(const AVBufferRef *buf); |
164 | 164 |
|
165 | 165 |
/** |
166 |
+ * @return the opaque parameter set by av_buffer_create. |
|
167 |
+ */ |
|
168 |
+void *av_buffer_get_opaque(const AVBufferRef *buf); |
|
169 |
+ |
|
170 |
+/** |
|
166 | 171 |
* Create a writable reference from a given buffer reference, avoiding data copy |
167 | 172 |
* if possible. |
168 | 173 |
* |
... | ... |
@@ -75,8 +75,8 @@ |
75 | 75 |
*/ |
76 | 76 |
|
77 | 77 |
#define LIBAVUTIL_VERSION_MAJOR 52 |
78 |
-#define LIBAVUTIL_VERSION_MINOR 22 |
|
79 |
-#define LIBAVUTIL_VERSION_MICRO 101 |
|
78 |
+#define LIBAVUTIL_VERSION_MINOR 23 |
|
79 |
+#define LIBAVUTIL_VERSION_MICRO 100 |
|
80 | 80 |
|
81 | 81 |
#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \ |
82 | 82 |
LIBAVUTIL_VERSION_MINOR, \ |