Showing the changes to libavcodec (2 of 2 files). Show all
Unified · Split
| @@ -703,6 +703,7 @@ static int hls_slice_header(HEVCContext *s) · 702 unmodified lines | ||
| 703 | 703 | if (ret < 0) |
| 704 | 704 | return ret; |
| 705 | 705 | |
| 706 | + sh->bits_used_for_short_term_rps = pos - get_bits_left(gb); | |
| 706 | 707 | sh->short_term_rps = &sh->slice_rps; |
| 707 | 708 | } else { |
| 708 | 709 | int numbits, rps_idx; |
| @@ -268,6 +268,7 @@ typedef struct SliceHeader { · 267 unmodified lines | ||
| 268 | 268 | |
| 269 | 269 | ///< RPS coded in the slice header itself is stored here |
| 270 | 270 | int short_term_ref_pic_set_sps_flag; |
| 271 | + int bits_used_for_short_term_rps; | |
| 271 | 272 | int short_term_ref_pic_set_size; |
| 272 | 273 | ShortTermRPS slice_rps; |
| 273 | 274 | const ShortTermRPS *short_term_rps; |