summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2017-06-24 00:29:02 +0100
committerMark Thompson <sw@jkqxz.net>2017-08-05 23:54:35 +0100
commitb88da98b34809dedf8882d43ed543632ed233538 (patch)
tree599724d657cb9e4f0a2e2ecc097aeedd501fdc44 /libavformat
parentaaf441465080b9bc57f5ca8dea656f9b2c5dc821 (diff)
hevc: Improve stream constraint values in common header
Add comments to describe the sources of the constraint values expressed here, and add some more related values which will be used in following patches. Fix the incorrect values for SPS and PPS count (they are not the same as those used for H.264), and remove HEVC_MAX_CU_SIZE because it is not used anywhere.
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/hevc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/hevc.c b/libavformat/hevc.c
index 057f6517ff..f8bfeebd31 100644
--- a/libavformat/hevc.c
+++ b/libavformat/hevc.c
@@ -412,7 +412,7 @@ static void skip_scaling_list_data(GetBitContext *gb)
static int parse_rps(GetBitContext *gb, unsigned int rps_idx,
unsigned int num_rps,
- unsigned int num_delta_pocs[HEVC_MAX_SHORT_TERM_RPS_COUNT])
+ unsigned int num_delta_pocs[HEVC_MAX_SHORT_TERM_REF_PIC_SETS])
{
unsigned int i;
@@ -478,7 +478,7 @@ static int hvcc_parse_sps(GetBitContext *gb,
HEVCDecoderConfigurationRecord *hvcc)
{
unsigned int i, sps_max_sub_layers_minus1, log2_max_pic_order_cnt_lsb_minus4;
- unsigned int num_short_term_ref_pic_sets, num_delta_pocs[HEVC_MAX_SHORT_TERM_RPS_COUNT];
+ unsigned int num_short_term_ref_pic_sets, num_delta_pocs[HEVC_MAX_SHORT_TERM_REF_PIC_SETS];
skip_bits(gb, 4); // sps_video_parameter_set_id
@@ -548,7 +548,7 @@ static int hvcc_parse_sps(GetBitContext *gb,
}
num_short_term_ref_pic_sets = get_ue_golomb_long(gb);
- if (num_short_term_ref_pic_sets > HEVC_MAX_SHORT_TERM_RPS_COUNT)
+ if (num_short_term_ref_pic_sets > HEVC_MAX_SHORT_TERM_REF_PIC_SETS)
return AVERROR_INVALIDDATA;
for (i = 0; i < num_short_term_ref_pic_sets; i++) {