Hi, On Tue, May 24, 2011 at 8:14 AM, Anton Khirnov <[email protected]> wrote: > From: Michael Niedermayer <[email protected]> > > Signed-off-by: Anton Khirnov <[email protected]> > --- > libavcodec/h263dec.c | 12 ++++++++++++ > 1 files changed, 12 insertions(+), 0 deletions(-) > > diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c > index fee5d32..8a367c8 100644 > --- a/libavcodec/h263dec.c > +++ b/libavcodec/h263dec.c > @@ -383,6 +383,18 @@ uint64_t time= rdtsc(); > > > retry: > + if(s->divx_packed && s->xvid_build>=0 && s->bitstream_buffer_size){ > + 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){ > + av_log(s->avctx, AV_LOG_WARNING, "Discarding excessive > bitstream in packed xvid\n"); > + s->bitstream_buffer_size=0; > + } > + break; > + } > + } > + }
Again, would be nice to get fate samples for this. I don't see what this code does without it. Ronald _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
