h263dec: produce a warning when excessive bitstream is discarded

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2011-03-03 14:06:58 +01:00
parent f28e599fbc
commit 3088635a44
1 changed files with 3 additions and 1 deletions

View File

@ -387,8 +387,10 @@ retry:
int i;
for(i=0; i<buf_size-3; i++){
if(buf[i]==0 && buf[i+1]==0 && buf[i+2]==1){
if(buf[i+3]==0xB0)
if(buf[i+3]==0xB0){
av_log(s->avctx, AV_LOG_WARNING, "Discarding excessive bitstream in packed xvid\n");
s->bitstream_buffer_size=0;
}
break;
}
}