On lun, apr 21, 2014 at 07:10:52 +0200, Alessandro Ghedini wrote:
> This caused mpv (and possibly others) to fallback to software decoding after
> seeking a VC1 stream.
> 
> Bug-Id: http://bugzilla.libav.org/show_bug.cgi?id=667
> ---
> I don't know if this makes any sense (I know close to nothing about vc1), but 
> it
> fixes the mpv seeking issue, and FWIW h263dec.c seems to be doing something
> similar in this situation.
> 
>  libavcodec/vc1dec.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c
> index 5d3ed80..9825924 100644
> --- a/libavcodec/vc1dec.c
> +++ b/libavcodec/vc1dec.c
> @@ -5941,7 +5941,7 @@ static int vc1_decode_frame(AVCodecContext *avctx, void 
> *data,
>  
>      /* skip B-frames if we don't have reference frames */
>      if (s->last_picture_ptr == NULL && (s->pict_type == AV_PICTURE_TYPE_B || 
> s->droppable)) {
> -        goto err;
> +        goto end;
>      }
>      if ((avctx->skip_frame >= AVDISCARD_NONREF && s->pict_type == 
> AV_PICTURE_TYPE_B) ||
>          (avctx->skip_frame >= AVDISCARD_NONKEY && s->pict_type != 
> AV_PICTURE_TYPE_I) ||
> -- 
> 1.9.2

Ping?
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to