aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h264.h
diff options
context:
space:
mode:
authorJanne Grunau <janne-libav@jannau.net>2012-11-16 01:12:40 +0100
committerReinhard Tartler <siretart@tauware.de>2014-05-31 20:07:52 -0400
commit6f4404b24bcf59ab29cd4b57995d374a578f51a7 (patch)
treec6beb6f9fd8b20055160eb9810cc6edbab257c04 /libavcodec/h264.h
parent110680c5a2098505400f4fdff4c994020a377d19 (diff)
downloadffmpeg-6f4404b24bcf59ab29cd4b57995d374a578f51a7.tar.gz
h264: set parameters from SPS whenever it changes
Fixes a crash in the fuzzed sample sample_varPAR.avi_s26638 with alternating bit depths.
Diffstat (limited to 'libavcodec/h264.h')
-rw-r--r--libavcodec/h264.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/h264.h b/libavcodec/h264.h
index 8680f5fdbd..c0e043e54b 100644
--- a/libavcodec/h264.h
+++ b/libavcodec/h264.h
@@ -204,6 +204,7 @@ typedef struct SPS{
int bit_depth_chroma; ///< bit_depth_chroma_minus8 + 8
int residual_color_transform_flag; ///< residual_colour_transform_flag
int constraint_set_flags; ///< constraint_set[0-3]_flag
+ int new; ///< flag to keep track if the decoder context needs re-init due to changed SPS
}SPS;
/**
@@ -330,6 +331,7 @@ typedef struct H264Context{
int emu_edge_width;
int emu_edge_height;
+ unsigned current_sps_id; ///< id of the current SPS
SPS sps; ///< current sps
/**