[FFmpeg-cvslog] h263dec: produce a warning when excessive bitstream is discarded
Michael Niedermayer
git
Thu Mar 3 18:24:02 CET 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Mar 3 14:06:58 2011 +0100| [3088635a44853f32852bf53980731f3d523d8a54] | committer: Michael Niedermayer
h263dec: produce a warning when excessive bitstream is discarded
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3088635a44853f32852bf53980731f3d523d8a54
---
libavcodec/h263dec.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c
index d341090..8085b4a 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;
}
}
More information about the ffmpeg-cvslog
mailing list