diff 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
line wrap: on
line diff
--- a/parser.c	Thu Oct 23 07:30:16 2008 +0000
+++ b/parser.c	Thu Oct 23 17:12:41 2008 +0000
@@ -274,6 +274,7 @@
     /* store overread bytes */
     for(;next < 0; next++){
         pc->state = (pc->state<<8) | pc->buffer[pc->last_index + next];
+        pc->state64 = (pc->state64<<8) | pc->buffer[pc->last_index + next];
         pc->overread++;
     }