aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ffmpeg-2.2/libavutil/mem.pas
diff options
context:
space:
mode:
authorbrian-ch <brian-ch@b956fd51-792f-4845-bead-9b4dfca2ff2c>2014-06-16 00:40:08 +0000
committerbrian-ch <brian-ch@b956fd51-792f-4845-bead-9b4dfca2ff2c>2014-06-16 00:40:08 +0000
commit5b78c67260c14642ca29844750752ac2aa9d8333 (patch)
treef792a0a4ebca0f281d116c877e75b25727b71ad9 /src/lib/ffmpeg-2.2/libavutil/mem.pas
parent167220739fc0b7506ee87c51696d259e95c2b0ed (diff)
downloadusdx-5b78c67260c14642ca29844750752ac2aa9d8333.tar.gz
usdx-5b78c67260c14642ca29844750752ac2aa9d8333.tar.xz
usdx-5b78c67260c14642ca29844750752ac2aa9d8333.zip
Update libavutil files for ffmpeg 2.2
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@3073 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'src/lib/ffmpeg-2.2/libavutil/mem.pas')
-rw-r--r--src/lib/ffmpeg-2.2/libavutil/mem.pas24
1 files changed, 23 insertions, 1 deletions
diff --git a/src/lib/ffmpeg-2.2/libavutil/mem.pas b/src/lib/ffmpeg-2.2/libavutil/mem.pas
index d7e0ca90..65ffb25a 100644
--- a/src/lib/ffmpeg-2.2/libavutil/mem.pas
+++ b/src/lib/ffmpeg-2.2/libavutil/mem.pas
@@ -19,7 +19,7 @@
* - Changes and updates by the UltraStar Deluxe Team
*
* Conversion of libavutil/mem.h
- * avutil version 52.38.100
+ * avutil version 52.66.100
*
*)
@@ -301,3 +301,25 @@ procedure av_max_alloc(max: size_t);
procedure av_memcpy_backptr(dst: Pcuint8; back: cint; cnt: cint);
cdecl; external av__util;
+(**
+ * Reallocate the given block if it is not large enough, otherwise do nothing.
+ *
+ * @see av_realloc
+ *)
+procedure av_fast_realloc(ptr: pointer; size: Pcuint; min_size: size_t);
+ cdecl; external av__util;
+
+(**
+ * Allocate a buffer, reusing the given one if large enough.
+ *
+ * Contrary to av_fast_realloc the current buffer contents might not be
+ * preserved and on error the old buffer is freed, thus no special
+ * handling to avoid memleaks is necessary.
+ *
+ * @param ptr pointer to pointer to already allocated buffer, overwritten with pointer to new buffer
+ * @param size size of the buffer *ptr points to
+ * @param min_size minimum size of *ptr buffer after returning, *ptr will be NULL and
+ * *size 0 if an error occurred.
+ *)
+procedure av_fast_malloc(ptr: pointer; size: Pcuint; min_size: size_t);
+ cdecl; external av__util;