mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-09 08:39:41 +00:00
h263dec: produce a warning when excessive bitstream is discarded
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
f28e599fbc
commit
3088635a44
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user