diff options
author | Anton Khirnov <anton@khirnov.net> | 2016-03-23 11:41:05 +0300 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2016-03-28 10:53:56 +0300 |
commit | ecc31f6b086453ab9811dce2ae5ceb6a7c19e4ad (patch) | |
tree | 464ce2f788c348470d80603de4bcf5365aa750ef /libavcodec/h264_cabac.c | |
parent | 1877712c586df2261f2806f45388c77592b89d1e (diff) |
h264: move ff_h264_check_intra[4x4]_pred_mode() to h264_parse
It is shared with svq3.
Diffstat (limited to 'libavcodec/h264_cabac.c')
-rw-r--r-- | libavcodec/h264_cabac.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/libavcodec/h264_cabac.c b/libavcodec/h264_cabac.c index 37f98ddd8a..589a021e1f 100644 --- a/libavcodec/h264_cabac.c +++ b/libavcodec/h264_cabac.c @@ -2076,16 +2076,20 @@ decode_intra_mb: } } write_back_intra_pred_mode(h, sl); - if (ff_h264_check_intra4x4_pred_mode(h, sl) < 0 ) return -1; + if (ff_h264_check_intra4x4_pred_mode(sl->intra4x4_pred_mode_cache, h->avctx, + sl->top_samples_available, sl->left_samples_available) < 0 ) + return -1; } else { - sl->intra16x16_pred_mode = ff_h264_check_intra_pred_mode(h, sl, sl->intra16x16_pred_mode, 0); + sl->intra16x16_pred_mode = ff_h264_check_intra_pred_mode(h->avctx, sl->top_samples_available, + sl->left_samples_available, sl->intra16x16_pred_mode, 0); if (sl->intra16x16_pred_mode < 0) return -1; } if(decode_chroma){ h->chroma_pred_mode_table[mb_xy] = pred_mode = decode_cabac_mb_chroma_pre_mode(h, sl); - pred_mode= ff_h264_check_intra_pred_mode(h, sl, pred_mode, 1 ); + pred_mode= ff_h264_check_intra_pred_mode(h->avctx, sl->top_samples_available, + sl->left_samples_available, pred_mode, 1 ); if( pred_mode < 0 ) return -1; sl->chroma_pred_mode = pred_mode; } else { |