summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-09-09 17:58:18 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-09-09 20:51:05 +0200
commit617a9eedc654bb3bdd6122f036ab5ec6aa491224 (patch)
tree6ddecdb78a338c15cc6402b77cec130523d26dbe
parente7484d54252d3442b64ed09770d4c84c44e104e9 (diff)
downloadffmpeg-617a9eedc654bb3bdd6122f036ab5ec6aa491224.tar.gz
avcodec/ffv1enc: update buffer check for 16bps
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 3728603f1854b5c79d1a64dd3b41b80640ef1e7f) Conflicts: libavcodec/ffv1enc.c (cherry picked from commit c900c6e5c26cd86cf34f9c8d4347cedbd01f3935)
-rw-r--r--libavcodec/ffv1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ffv1.c b/libavcodec/ffv1.c
index ccfcb62dc4..db68a18ab4 100644
--- a/libavcodec/ffv1.c
+++ b/libavcodec/ffv1.c
@@ -360,7 +360,7 @@ static inline int encode_line(FFV1Context *s, int w, int_fast16_t *sample[2], in
int run_mode=0;
if(s->ac){
- if(c->bytestream_end - c->bytestream < w*20){
+ if(c->bytestream_end - c->bytestream < w*35){
av_log(s->avctx, AV_LOG_ERROR, "encoded frame too large\n");
return -1;
}