Hi, On Mon, Jun 13, 2011 at 5:23 AM, Anton Khirnov <[email protected]> wrote: > From: Michael Niedermayer <[email protected]> > > Signed-off-by: Michael Niedermayer <[email protected]> > Signed-off-by: Anton Khirnov <[email protected]> > --- > libavcodec/h264.c | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/libavcodec/h264.c b/libavcodec/h264.c > index e1fcb62..6a627ed 100644 > --- a/libavcodec/h264.c > +++ b/libavcodec/h264.c > @@ -3228,7 +3228,8 @@ static int decode_slice(struct AVCodecContext *avctx, > void *arg){ > if(s->mb_y >= s->mb_height){ > tprintf(s->avctx, "slice end %d %d\n", > get_bits_count(&s->gb), s->gb.size_in_bits); > > - if(get_bits_count(&s->gb) == s->gb.size_in_bits ) { > + if( get_bits_count(&s->gb) == s->gb.size_in_bits > + || get_bits_count(&s->gb) < s->gb.size_in_bits && > s->avctx->error_recognition < FF_ER_AGGRESSIVE) {
This smells like breakage. Unless we know what it fixes and it is documented how this is supposed to be autodetected and used, this is a no. Ronald _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
