Mercurial > libavcodec.hg
comparison h261.c @ 3579:df07afe83a62 libavcodec
fix h261 parsing bug
author | michael |
---|---|
date | Mon, 14 Aug 2006 17:58:30 +0000 |
parents | cc4b4ea83e29 |
children | 28574f57a0fc |
comparison
equal
deleted
inserted
replaced
3578:e0fb0ff7c6a8 | 3579:df07afe83a62 |
---|---|
857 | 857 |
858 for(i=0; i<buf_size && !vop_found; i++){ | 858 for(i=0; i<buf_size && !vop_found; i++){ |
859 state= (state<<8) | buf[i]; | 859 state= (state<<8) | buf[i]; |
860 for(j=0; j<8; j++){ | 860 for(j=0; j<8; j++){ |
861 if(((state>>j)&0xFFFFF) == 0x00010){ | 861 if(((state>>j)&0xFFFFF) == 0x00010){ |
862 i++; | |
863 vop_found=1; | 862 vop_found=1; |
864 break; | 863 break; |
865 } | 864 } |
866 } | 865 } |
867 } | 866 } |