1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-04 06:08:26 +02:00

hevcdec: expose bits_used_for_short_term_rps

This commit is contained in:
Lynne 2022-12-07 17:11:36 +01:00
parent 4e1f3ab184
commit 6eaca2abd8
No known key found for this signature in database
GPG Key ID: A2FEA5F03F034464
2 changed files with 2 additions and 0 deletions

View File

@ -703,6 +703,7 @@ static int hls_slice_header(HEVCContext *s)
if (ret < 0)
return ret;
sh->bits_used_for_short_term_rps = pos - get_bits_left(gb);
sh->short_term_rps = &sh->slice_rps;
} else {
int numbits, rps_idx;

View File

@ -268,6 +268,7 @@ typedef struct SliceHeader {
///< RPS coded in the slice header itself is stored here
int short_term_ref_pic_set_sps_flag;
int bits_used_for_short_term_rps;
int short_term_ref_pic_set_size;
ShortTermRPS slice_rps;
const ShortTermRPS *short_term_rps;