OSDN Git Service

Merge commit '25408b2a0660c1e6c8555559c4ed71dff2ede31e'
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 21 Mar 2013 11:05:13 +0000 (12:05 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 21 Mar 2013 11:05:13 +0000 (12:05 +0100)
* commit '25408b2a0660c1e6c8555559c4ed71dff2ede31e':
  h264: make ff_h264_frame_start static.

Conflicts:
libavcodec/h264.c
libavcodec/h264.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
1  2 
libavcodec/h264.c
libavcodec/h264.h

@@@ -3502,10 -3377,7 +3502,10 @@@ static int decode_slice_header(H264Cont
              Picture *prev = h->short_ref_count ? h->short_ref[0] : NULL;
              av_log(h->avctx, AV_LOG_DEBUG, "Frame num gap %d %d\n",
                     h->frame_num, h->prev_frame_num);
-             if (ff_h264_frame_start(h) < 0)
 +            if (!h->sps.gaps_in_frame_num_allowed_flag)
 +                for(i=0; i<FF_ARRAY_ELEMS(h->last_pocs); i++)
 +                    h->last_pocs[i] = INT_MIN;
+             if (h264_frame_start(h) < 0)
                  return -1;
              h->prev_frame_num++;
              h->prev_frame_num %= 1 << h->sps.log2_max_frame_num;
@@@ -736,8 -709,7 +736,7 @@@ int ff_h264_check_intra4x4_pred_mode(H2
  int ff_h264_check_intra_pred_mode(H264Context *h, int mode, int is_chroma);
  
  void ff_h264_hl_decode_mb(H264Context *h);
- int ff_h264_frame_start(H264Context *h);
 -int ff_h264_decode_extradata(H264Context *h);
 +int ff_h264_decode_extradata(H264Context *h, const uint8_t *buf, int size);
  int ff_h264_decode_init(AVCodecContext *avctx);
  void ff_h264_decode_init_vlc(void);