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>
Fri, 9 Dec 2016 00:59:40 +0000 (01:59 +0100)
commit38a7834bbb24ef62466b076715e0add60e1d6962
treed3f73bcbc037a36e558ce09853259c82d353cb8a
parentcff1c0edaa797eca96663d9b83e4b8c1b609ff19
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>
libavcodec/ffv1enc.c