avcodec/ffv1enc: Allocate smaller packet if the worst case size cannot be allocated
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 8 Dec 2016 22:51:45 +0000 (23:51 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 8 Feb 2017 20:17:50 +0000 (21:17 +0100)
commit774461ea629a18258ba45a707dbdc35b17d9b298
tree209111b62c734cb0f37392f1cf039795e6809a36
parent94a0a484b703b78d5c4d780b884a1541a30410d8
avcodec/ffv1enc: Allocate smaller packet if the worst case size cannot be allocated

We are checking during encoding if there is enough space as version 4 needs that
check.

Fixes Ticket6005

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 38a7834bbb24ef62466b076715e0add60e1d6962)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/ffv1enc.c