diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-03-22 03:55:21 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-03-22 19:03:18 +0100 |
commit | 00663de3b752fc3bdd47d4516ad2fcc720722782 (patch) | |
tree | 989cf29bf63f92b0e37c26351f1bafced378ad1e /libavcodec/internal.h | |
parent | 6c9db40205d5c0cf40c13bf34c0a1c39a310de50 (diff) | |
download | ffmpeg-00663de3b752fc3bdd47d4516ad2fcc720722782.tar.gz |
lavc: add ff_alloc_packet2().
This contains a AVCodecContext thus allowing us to prevent the
error message duplication
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/internal.h')
-rw-r--r-- | libavcodec/internal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/internal.h b/libavcodec/internal.h index cd321c3688..6578eb413f 100644 --- a/libavcodec/internal.h +++ b/libavcodec/internal.h @@ -127,6 +127,7 @@ int avpriv_unlock_avformat(void); * ensure the output packet data is large enough, whether provided by the user * or allocated in this function. * + * @param avctx the AVCodecContext of the encoder * @param avpkt the AVPacket * If avpkt->data is already set, avpkt->size is checked * to ensure it is large enough. @@ -136,6 +137,8 @@ int avpriv_unlock_avformat(void); * @param size the minimum required packet size * @return 0 on success, negative error code on failure */ +int ff_alloc_packet2(AVCodecContext *avctx, AVPacket *avpkt, int size); + int ff_alloc_packet(AVPacket *avpkt, int size); /** |