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:43:29 +0000 (00:43 +0100)
commit0131f5c3769981c1e36ff124a50011702c491329
tree1c1c3cf0d37e8abf4b87d96554a9a576a999d5bf
parent255e61c25b830b1e84d919027106ff85868099bb
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