diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-03-03 14:06:58 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-03-03 18:22:27 +0100 |
commit | 3088635a44853f32852bf53980731f3d523d8a54 (patch) | |
tree | 6525aa07787e8a9ffa70ecec8be432e3d69ffbbd /libavcodec | |
parent | f28e599fbc853938b1cd0ef0aa7d01b9c06b7e9c (diff) | |
download | ffmpeg-3088635a44853f32852bf53980731f3d523d8a54.tar.gz |
h263dec: produce a warning when excessive bitstream is discarded
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/h263dec.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c index d341090fa6..8085b4a9eb 100644 --- a/libavcodec/h263dec.c +++ b/libavcodec/h263dec.c @@ -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; } } |