Mercurial > libavcodec.hg
comparison h263.c @ 2846:40765c51a7a9 libavcodec
Compilation fixes part 1 patch by (Arvind R. and Burkhard Plaum, plaum, ipf uni-stuttgart de)
author | michael |
---|---|
date | Fri, 26 Aug 2005 19:05:44 +0000 |
parents | 48fb350b0ec9 |
children | 5dfb90019814 |
comparison
equal
deleted
inserted
replaced
2845:d9f4b93e81c5 | 2846:40765c51a7a9 |
---|---|
4538 sign = code & 1; | 4538 sign = code & 1; |
4539 code >>= 1; | 4539 code >>= 1; |
4540 | 4540 |
4541 code = (sign) ? (pred - code) : (pred + code); | 4541 code = (sign) ? (pred - code) : (pred + code); |
4542 #ifdef DEBUG | 4542 #ifdef DEBUG |
4543 fprintf(stderr,"H.263+ UMV Motion = %d\n", code); | 4543 av_log( s->avctx, AV_LOG_DEBUG,"H.263+ UMV Motion = %d\n", code); |
4544 #endif | 4544 #endif |
4545 return code; | 4545 return code; |
4546 | 4546 |
4547 } | 4547 } |
4548 | 4548 |
4885 av_log(s->avctx, AV_LOG_ERROR, "illegal 3. esc, vlc encoding possible\n"); | 4885 av_log(s->avctx, AV_LOG_ERROR, "illegal 3. esc, vlc encoding possible\n"); |
4886 return -1; | 4886 return -1; |
4887 } | 4887 } |
4888 if(s->error_resilience > FF_ER_COMPLIANT){ | 4888 if(s->error_resilience > FF_ER_COMPLIANT){ |
4889 if(abs_level <= rl->max_level[last][run]*2){ | 4889 if(abs_level <= rl->max_level[last][run]*2){ |
4890 fprintf(stderr, "illegal 3. esc, esc 1 encoding possible\n"); | 4890 av_log(s->avctx, AV_LOG_ERROR, "illegal 3. esc, esc 1 encoding possible\n"); |
4891 return -1; | 4891 return -1; |
4892 } | 4892 } |
4893 if(run1 >= 0 && abs_level <= rl->max_level[last][run1]){ | 4893 if(run1 >= 0 && abs_level <= rl->max_level[last][run1]){ |
4894 fprintf(stderr, "illegal 3. esc, esc 2 encoding possible\n"); | 4894 av_log(s->avctx, AV_LOG_ERROR, "illegal 3. esc, esc 2 encoding possible\n"); |
4895 return -1; | 4895 return -1; |
4896 } | 4896 } |
4897 } | 4897 } |
4898 } | 4898 } |
4899 } | 4899 } |