aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/avcodec.h
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2012-02-28 01:08:31 +0200
committerMartin Storsjö <martin@martin.st>2012-03-01 16:08:30 +0200
commit442c1320e72a13d02c9c477aab7100ef910c33c7 (patch)
treed4627a94a9854a651c5821a66bc4e48a204546f2 /libavcodec/avcodec.h
parent5cd1337f5db49b4537d83ae2a8115a90d77e3a28 (diff)
downloadffmpeg-442c1320e72a13d02c9c477aab7100ef910c33c7.tar.gz
avpacket: Add a function for shrinking already allocated side data
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r--libavcodec/avcodec.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index f4db08335a..af2a5ca3f2 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -3079,6 +3079,17 @@ uint8_t* av_packet_new_side_data(AVPacket *pkt, enum AVPacketSideDataType type,
int size);
/**
+ * Shrink the already allocated side data buffer
+ *
+ * @param pkt packet
+ * @param type side information type
+ * @param size new side information size
+ * @return 0 on success, < 0 on failure
+ */
+int av_packet_shrink_side_data(AVPacket *pkt, enum AVPacketSideDataType type,
+ int size);
+
+/**
* Get side information from packet.
*
* @param pkt packet