Mercurial > libavcodec.hg
comparison h263dec.c @ 1211:126f766bc4c5 libavcodec
cleanup mpeg1/2 bitstream parser
author | michaelni |
---|---|
date | Tue, 22 Apr 2003 13:55:12 +0000 |
parents | 03b97d87dcdd |
children | ad21a7b2349b |
comparison
equal
deleted
inserted
replaced
1210:ede882dd601f | 1211:126f766bc4c5 |
---|---|
323 vop_found=1; | 323 vop_found=1; |
324 break; | 324 break; |
325 } | 325 } |
326 } | 326 } |
327 } | 327 } |
328 | 328 |
329 for(; i<buf_size; i++){ | 329 if(vop_found){ |
330 for(; i<buf_size; i++){ | |
330 state= (state<<8) | buf[i]; | 331 state= (state<<8) | buf[i]; |
331 if((state&0xFFFFFF00) == 0x100){ | 332 if((state&0xFFFFFF00) == 0x100){ |
332 pc->frame_start_found=0; | 333 pc->frame_start_found=0; |
333 pc->state=-1; | 334 pc->state=-1; |
334 return i-3; | 335 return i-3; |
335 } | 336 } |
337 } | |
336 } | 338 } |
337 pc->frame_start_found= vop_found; | 339 pc->frame_start_found= vop_found; |
338 pc->state= state; | 340 pc->state= state; |
339 return -1; | 341 return -1; |
340 } | 342 } |