summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDeliang Fu <[email protected]>2015-06-10 12:30:46 +0800
committerMichael Niedermayer <[email protected]>2015-07-20 04:43:40 +0200
commit35e46e74bc2483f3898cf191a26435cd3ddfb086 (patch)
tree85cce103df71623c10a6288a983e97857e41a2ed
parentd15f4f5f22eeca76d224184d4de2fef20a243b3f (diff)
avformat: Fix bug in parse_rps for HEVC.
Make the logic in libavformat/hevc.c parse_rps align with libavcodec/hevc_ps.c ff_hevc_decode_short_term_rps Signed-off-by: Michael Niedermayer <[email protected]> (cherry picked from commit 6e1f8780c833ef55815111d4771b95ff78567cdb) Signed-off-by: Michael Niedermayer <[email protected]>
-rw-r--r--libavformat/hevc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/hevc.c b/libavformat/hevc.c
index c92e9eb118..32192badca 100644
--- a/libavformat/hevc.c
+++ b/libavformat/hevc.c
@@ -449,7 +449,7 @@ static int parse_rps(GetBitContext *gb, unsigned int rps_idx,
*
* NumDeltaPocs[RefRpsIdx]: num_delta_pocs[rps_idx - 1]
*/
- for (i = 0; i < num_delta_pocs[rps_idx - 1]; i++) {
+ for (i = 0; i <= num_delta_pocs[rps_idx - 1]; i++) {
uint8_t use_delta_flag = 0;
uint8_t used_by_curr_pic_flag = get_bits1(gb);
if (!used_by_curr_pic_flag)