Commit bbc0f6f9 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '25408b2a'

* commit '25408b2a':
  h264: make ff_h264_frame_start static.

Conflicts:
	libavcodec/h264.c
	libavcodec/h264.h
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 6c8ac2d7 25408b2a
...@@ -1806,7 +1806,7 @@ static int decode_update_thread_context(AVCodecContext *dst, ...@@ -1806,7 +1806,7 @@ static int decode_update_thread_context(AVCodecContext *dst,
return err; return err;
} }
int ff_h264_frame_start(H264Context *h) static int h264_frame_start(H264Context *h)
{ {
Picture *pic; Picture *pic;
int i, ret; int i, ret;
...@@ -3505,7 +3505,7 @@ static int decode_slice_header(H264Context *h, H264Context *h0) ...@@ -3505,7 +3505,7 @@ static int decode_slice_header(H264Context *h, H264Context *h0)
if (!h->sps.gaps_in_frame_num_allowed_flag) if (!h->sps.gaps_in_frame_num_allowed_flag)
for(i=0; i<FF_ARRAY_ELEMS(h->last_pocs); i++) for(i=0; i<FF_ARRAY_ELEMS(h->last_pocs); i++)
h->last_pocs[i] = INT_MIN; h->last_pocs[i] = INT_MIN;
if (ff_h264_frame_start(h) < 0) if (h264_frame_start(h) < 0)
return -1; return -1;
h->prev_frame_num++; h->prev_frame_num++;
h->prev_frame_num %= 1 << h->sps.log2_max_frame_num; h->prev_frame_num %= 1 << h->sps.log2_max_frame_num;
...@@ -3569,7 +3569,7 @@ static int decode_slice_header(H264Context *h, H264Context *h0) ...@@ -3569,7 +3569,7 @@ static int decode_slice_header(H264Context *h, H264Context *h0)
} }
if (!FIELD_PICTURE || h0->first_field) { if (!FIELD_PICTURE || h0->first_field) {
if (ff_h264_frame_start(h) < 0) { if (h264_frame_start(h) < 0) {
h0->first_field = 0; h0->first_field = 0;
return -1; return -1;
} }
......
...@@ -736,7 +736,6 @@ int ff_h264_check_intra4x4_pred_mode(H264Context *h); ...@@ -736,7 +736,6 @@ int ff_h264_check_intra4x4_pred_mode(H264Context *h);
int ff_h264_check_intra_pred_mode(H264Context *h, int mode, int is_chroma); int ff_h264_check_intra_pred_mode(H264Context *h, int mode, int is_chroma);
void ff_h264_hl_decode_mb(H264Context *h); void ff_h264_hl_decode_mb(H264Context *h);
int ff_h264_frame_start(H264Context *h);
int ff_h264_decode_extradata(H264Context *h, const uint8_t *buf, int size); int ff_h264_decode_extradata(H264Context *h, const uint8_t *buf, int size);
int ff_h264_decode_init(AVCodecContext *avctx); int ff_h264_decode_init(AVCodecContext *avctx);
void ff_h264_decode_init_vlc(void); void ff_h264_decode_init_vlc(void);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment