From 98a8ce49644a640d1178cd57ed3a4db4edca2e69 Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier Date: Thu, 23 Oct 2008 17:12:41 +0000 Subject: add state64 field to ParseContext storing last 8 bytes, to be able to check for longer startcodes Originally committed as revision 15671 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/parser.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavcodec/parser.c') diff --git a/libavcodec/parser.c b/libavcodec/parser.c index 460693f2dd..b7b6b8df9d 100644 --- a/libavcodec/parser.c +++ b/libavcodec/parser.c @@ -274,6 +274,7 @@ int ff_combine_frame(ParseContext *pc, int next, const uint8_t **buf, int *buf_s /* 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++; } -- cgit v1.2.3