Mercurial > libavcodec.hg
comparison mpegvideo.c @ 3092:421579792fc2 libavcodec
1 goto 1 fix
author | michael |
---|---|
date | Mon, 06 Feb 2006 11:21:26 +0000 |
parents | 072dbc669253 |
children | ede5c3c0a0eb |
comparison
equal
deleted
inserted
replaced
3091:0284d5b34916 | 3092:421579792fc2 |
---|---|
228 } | 228 } |
229 #endif //CONFIG_ENCODERS | 229 #endif //CONFIG_ENCODERS |
230 | 230 |
231 const uint8_t *ff_find_start_code(const uint8_t * restrict p, const uint8_t *end, uint32_t * restrict state){ | 231 const uint8_t *ff_find_start_code(const uint8_t * restrict p, const uint8_t *end, uint32_t * restrict state){ |
232 int i; | 232 int i; |
233 | |
234 assert(p<=end); | |
235 if(p>=end) | |
236 return end; | |
233 | 237 |
234 for(i=0; i<3; i++){ | 238 for(i=0; i<3; i++){ |
235 uint32_t tmp= *state << 8; | 239 uint32_t tmp= *state << 8; |
236 *state= tmp + *(p++); | 240 *state= tmp + *(p++); |
237 if(tmp == 0x100 || p==end) | 241 if(tmp == 0x100 || p==end) |