diff options
author | Deliang Fu <agoalster@gmail.com> | 2015-06-10 12:30:46 +0800 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-06-11 02:31:53 +0200 |
commit | 6e1f8780c833ef55815111d4771b95ff78567cdb (patch) | |
tree | cce3f610fe13604490b7545bc3042ef59dd14983 /libavformat/hevc.c | |
parent | 8ddc415515eb74c72b774fad48e34df43d5954ad (diff) | |
download | ffmpeg-6e1f8780c833ef55815111d4771b95ff78567cdb.tar.gz |
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 <michaelni@gmx.at>
Diffstat (limited to 'libavformat/hevc.c')
-rw-r--r-- | libavformat/hevc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/hevc.c b/libavformat/hevc.c index 16b06b4bf4..643b71596a 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) |