~ppsspp/ppsspp/ffmpeg-upstream

« back to all changes in this revision

Viewing changes to libavcodec/hevc.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:
456
456
 
457
457
        slice_address_length = av_ceil_log2(s->sps->ctb_width *
458
458
                                            s->sps->ctb_height);
459
 
        sh->slice_segment_addr = get_bits(gb, slice_address_length);
 
459
        sh->slice_segment_addr = slice_address_length ? get_bits(gb, slice_address_length) : 0;
460
460
        if (sh->slice_segment_addr >= s->sps->ctb_width * s->sps->ctb_height) {
461
461
            av_log(s->avctx, AV_LOG_ERROR,
462
462
                   "Invalid slice segment address: %u.\n",