aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ffv1.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2015-09-24 23:49:30 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2015-09-24 23:53:02 +0200
commitaa6c43f3fdec8a7518534b9dab20c9eb4be11568 (patch)
tree2c82bac0ac027e33e4853f29f418a1075acf9422 /libavcodec/ffv1.h
parent244184217c3e560ff1f30c072edd745fa42a604c (diff)
downloadffmpeg-aa6c43f3fdec8a7518534b9dab20c9eb4be11568.tar.gz
avcodec/ffv1: seperate slice_count from max_slice_count
Fix segfault with too large slice_count Fixes Ticket4879 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/ffv1.h')
-rw-r--r--libavcodec/ffv1.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/ffv1.h b/libavcodec/ffv1.h
index 9526b1634f..b68ed2c4c1 100644
--- a/libavcodec/ffv1.h
+++ b/libavcodec/ffv1.h
@@ -118,6 +118,7 @@ typedef struct FFV1Context {
struct FFV1Context *slice_context[MAX_SLICES];
int slice_count;
+ int max_slice_count;
int num_v_slices;
int num_h_slices;
int slice_width;