Mercurial > libavcodec.hg
comparison utils.c @ 10832:f20726a6d538 libavcodec
Add a function to match a 2 element vector of uint16_t and use it in h263 and svq1
instead of custom and bloated code to find an index into a w/h array.
author | michael |
---|---|
date | Sat, 09 Jan 2010 18:33:21 +0000 |
parents | 90f34aa8fe0a |
children | bf309c7ce615 |
comparison
equal
deleted
inserted
replaced
10831:94982978af3b | 10832:f20726a6d538 |
---|---|
1198 return -1; | 1198 return -1; |
1199 else | 1199 else |
1200 return 0; | 1200 return 0; |
1201 } | 1201 } |
1202 | 1202 |
1203 int ff_match_2uint16(const uint16_t (*tab)[2], int size, int a, int b){ | |
1204 int i; | |
1205 for(i=0; i<size && !(tab[i][0]==a && tab[i][1]==b); i++); | |
1206 return i; | |
1207 } | |
1208 | |
1203 void av_log_missing_feature(void *avc, const char *feature, int want_sample) | 1209 void av_log_missing_feature(void *avc, const char *feature, int want_sample) |
1204 { | 1210 { |
1205 av_log(avc, AV_LOG_WARNING, "%s not implemented. Update your FFmpeg " | 1211 av_log(avc, AV_LOG_WARNING, "%s not implemented. Update your FFmpeg " |
1206 "version to the newest one from SVN. If the problem still " | 1212 "version to the newest one from SVN. If the problem still " |
1207 "occurs, it means that your file has a feature which has not " | 1213 "occurs, it means that your file has a feature which has not " |