diff options
author | Justin Ruggles | 2012-02-01 16:23:19 -0500 |
---|---|---|
committer | Justin Ruggles | 2012-02-01 16:33:27 -0500 |
commit | 1a670973a756e6e1a7a170d58f3589fd5ad4c088 (patch) | |
tree | 493eae88bfb2f2c4e72eea37345d4f79bb2171b1 /libavcodec/internal.h | |
parent | 5ff88020ac4cd285fa00d0c559aa196bbd8526d7 (diff) |
ff_alloc_packet: modify the size of the packet to match the requested size
This will simplify encoders which use this function to request the exact
packet size rather than the maximum size.
Diffstat (limited to 'libavcodec/internal.h')
-rw-r--r-- | libavcodec/internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/internal.h b/libavcodec/internal.h index 441430e41c..b435a359fb 100644 --- a/libavcodec/internal.h +++ b/libavcodec/internal.h @@ -120,6 +120,7 @@ int avpriv_unlock_avformat(void); * If avpkt->data is already set, avpkt->size is checked * to ensure it is large enough. * If avpkt->data is NULL, a new buffer is allocated. + * avpkt->size is set to the specified size. * All other AVPacket fields will be reset with av_init_packet(). * @param size the minimum required packet size * @return 0 on success, negative error code on failure |