On 2013-02-16 21:37:46 +0100, Anton Khirnov wrote: > Since decode_slice_header() returns before the reference lists are > constructed, there are zero valid references. > > CC:[email protected] > --- > libavcodec/h264.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavcodec/h264.c b/libavcodec/h264.c > index 5749079..47029a3 100644 > --- a/libavcodec/h264.c > +++ b/libavcodec/h264.c > @@ -3494,7 +3494,7 @@ static int decode_slice_header(H264Context *h, > H264Context *h0) > > if (h->ref_count[0] > max_refs || h->ref_count[1] > max_refs) { > av_log(h->avctx, AV_LOG_ERROR, "reference overflow\n"); > - h->ref_count[0] = h->ref_count[1] = 1; > + h->ref_count[0] = h->ref_count[1] = 0; > return AVERROR_INVALIDDATA; > }
ok Janne _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
