summaryrefslogtreecommitdiff
path: root/libavcodec/internal.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-09-09 17:08:03 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-09-09 20:18:54 +0200
commit9a0e20817aeedbd11fb019e35bae00c2a12cc3e3 (patch)
tree6e7f57f9a05f002efeaebad1498abd95058767e2 /libavcodec/internal.h
parenta5615b82eb116e9fd0f71f2b03c333cc31ab706a (diff)
avcodec/util: Make size argument of ff_alloc_packet2() int64_t
This ensures that huge sizes dont get truncated before the check in ff_alloc_packet2() Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/internal.h')
-rw-r--r--libavcodec/internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/internal.h b/libavcodec/internal.h
index 89592437c0..96976e1ae9 100644
--- a/libavcodec/internal.h
+++ b/libavcodec/internal.h
@@ -171,7 +171,7 @@ 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_packet2(AVCodecContext *avctx, AVPacket *avpkt, int64_t size);
int ff_alloc_packet(AVPacket *avpkt, int size);