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>
Sat, 10 Dec 2016 23:21:53 +0000 (00:21 +0100)
commit0e6febff5a7b4d2b823911dd2e04f0bac718ddfb
tree3643c80fb11e36e8e0f9f3d8b8d34c82d45b9677
parent3f779aef79b1b92bee569f9813f502798fccd8c8
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