]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/internal.h
pcm: switch to ff_alloc_packet2().
[ffmpeg] / libavcodec / internal.h
index cd321c368854b00b44caacc7a0886819dc81a3f8..6578eb413f734532928f52cb08956471d67e51e7 100644 (file)
@@ -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);
 
 /**