~ppsspp/ppsspp/ffmpeg-upstream

« back to all changes in this revision

Viewing changes to libavcodec/hevc_parser.c

  • Committer: Sérgio Benjamim
  • Date: 2015-07-20 03:55:05 UTC
  • Revision ID: sergio_br2@yahoo.com.br-20150720035505-i1jj1zcjcnd0mc7w
Updated to 2.7.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
200
200
 
201
201
                slice_address_length = av_ceil_log2_c(h->sps->ctb_width *
202
202
                                                      h->sps->ctb_height);
203
 
                sh->slice_segment_addr = get_bits(gb, slice_address_length);
 
203
                sh->slice_segment_addr = slice_address_length ? get_bits(gb, slice_address_length) : 0;
204
204
                if (sh->slice_segment_addr >= h->sps->ctb_width * h->sps->ctb_height) {
205
205
                    av_log(h->avctx, AV_LOG_ERROR, "Invalid slice segment address: %u.\n",
206
206
                           sh->slice_segment_addr);