comparison h264.c @ 4529:a8082e1ed672 libavcodec

simplify
author michael
date Fri, 16 Feb 2007 21:25:22 +0000
parents b80c704183e9
children e47cc0486771
comparison
equal deleted inserted replaced
4528:33c6fe489f62 4529:a8082e1ed672
1037 static inline int check_intra_pred_mode(H264Context *h, int mode){ 1037 static inline int check_intra_pred_mode(H264Context *h, int mode){
1038 MpegEncContext * const s = &h->s; 1038 MpegEncContext * const s = &h->s;
1039 static const int8_t top [7]= {LEFT_DC_PRED8x8, 1,-1,-1}; 1039 static const int8_t top [7]= {LEFT_DC_PRED8x8, 1,-1,-1};
1040 static const int8_t left[7]= { TOP_DC_PRED8x8,-1, 2,-1,DC_128_PRED8x8}; 1040 static const int8_t left[7]= { TOP_DC_PRED8x8,-1, 2,-1,DC_128_PRED8x8};
1041 1041
1042 if(mode < 0 || mode > 6) { 1042 if(mode > 6U) {
1043 av_log(h->s.avctx, AV_LOG_ERROR, "out of range intra chroma pred mode at %d %d\n", s->mb_x, s->mb_y); 1043 av_log(h->s.avctx, AV_LOG_ERROR, "out of range intra chroma pred mode at %d %d\n", s->mb_x, s->mb_y);
1044 return -1; 1044 return -1;
1045 } 1045 }
1046 1046
1047 if(!(h->top_samples_available&0x8000)){ 1047 if(!(h->top_samples_available&0x8000)){