diff options
author | wm4 <nfxjfg@googlemail.com> | 2015-10-02 17:18:00 +0200 |
---|---|---|
committer | wm4 <nfxjfg@googlemail.com> | 2015-10-02 19:08:54 +0200 |
commit | 069190f7078e1e3abbfa27e2d97a10f33ae05fef (patch) | |
tree | e31b96457e901d132ba292fba0bcedfc8587b5e0 /libavcodec/h264.h | |
parent | 74ef5449a6fb64f4c4be4bfd470dc17de5ecb561 (diff) | |
download | ffmpeg-069190f7078e1e3abbfa27e2d97a10f33ae05fef.tar.gz |
avcodec/h264: keep SPS and PPS bitstream data
We assume an upper bound of 4096 bytes for each raw SPS/PPS. It's hard
to determine an exact maximum size, but this value was was considered
high enough and safe.
Needed for the following VideotoolBox commit.
Diffstat (limited to 'libavcodec/h264.h')
-rw-r--r-- | libavcodec/h264.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/h264.h b/libavcodec/h264.h index 73562882cd..769abdad4b 100644 --- a/libavcodec/h264.h +++ b/libavcodec/h264.h @@ -229,6 +229,8 @@ typedef struct SPS { 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 + uint8_t data[4096]; + size_t data_size; } SPS; /** @@ -254,6 +256,8 @@ typedef struct PPS { uint8_t scaling_matrix8[6][64]; uint8_t chroma_qp_table[2][QP_MAX_NUM+1]; ///< pre-scaled (with chroma_qp_index_offset) version of qp_table int chroma_qp_diff; + uint8_t data[4096]; + size_t data_size; } PPS; /** |