comparison parser.c @ 8044:8c1e1047ec78 libavcodec

add state64 field to ParseContext storing last 8 bytes, to be able to check for longer startcodes
author bcoudurier
date Thu, 23 Oct 2008 17:12:41 +0000
parents def5fcc1d40e
children 04423b2f6e0b
comparison
equal deleted inserted replaced
8043:a591c3736fd8 8044:8c1e1047ec78
272 } 272 }
273 273
274 /* store overread bytes */ 274 /* store overread bytes */
275 for(;next < 0; next++){ 275 for(;next < 0; next++){
276 pc->state = (pc->state<<8) | pc->buffer[pc->last_index + next]; 276 pc->state = (pc->state<<8) | pc->buffer[pc->last_index + next];
277 pc->state64 = (pc->state64<<8) | pc->buffer[pc->last_index + next];
277 pc->overread++; 278 pc->overread++;
278 } 279 }
279 280
280 #if 0 281 #if 0
281 if(pc->overread){ 282 if(pc->overread){