Commit 3088635a authored by Michael Niedermayer's avatar Michael Niedermayer

h263dec: produce a warning when excessive bitstream is discarded

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent f28e599f
...@@ -387,8 +387,10 @@ retry: ...@@ -387,8 +387,10 @@ retry:
int i; int i;
for(i=0; i<buf_size-3; i++){ for(i=0; i<buf_size-3; i++){
if(buf[i]==0 && buf[i+1]==0 && buf[i+2]==1){ 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; s->bitstream_buffer_size=0;
}
break; break;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment