History

hevcdec: expose bits_used_for_short_term_rps

Lynne committed 3 years ago

Commit 6eaca2a1 parent 4e1f3ab2 files · +2 −0Browse files

Showing the changes to libavcodec (2 of 2 files). Show all

Unified · Split

2 files
  1. libavcodec/hevcdec.c +1 −0
  2. libavcodec/hevcdec.h +1 −0
libavcodec/hevcdec.c+1−0
@@ -703,6 +703,7 @@ static int hls_slice_header(HEVCContext *s) · 702 unmodified lines
703703 if (ret < 0)
704704 return ret;
705705
706+ sh->bits_used_for_short_term_rps = pos - get_bits_left(gb);
706707 sh->short_term_rps = &sh->slice_rps;
707708 } else {
708709 int numbits, rps_idx;
libavcodec/hevcdec.h+1−0
@@ -268,6 +268,7 @@ typedef struct SliceHeader { · 267 unmodified lines
268268
269269 ///< RPS coded in the slice header itself is stored here
270270 int short_term_ref_pic_set_sps_flag;
271+ int bits_used_for_short_term_rps;
271272 int short_term_ref_pic_set_size;
272273 ShortTermRPS slice_rps;
273274 const ShortTermRPS *short_term_rps;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t