On Fri, Jul 15, 2011 at 01:09:13AM +0200, Diego Biurrun wrote:
> 
> --- a/libavcodec/vaapi_mpeg2.c
> +++ b/libavcodec/vaapi_mpeg2.c
> @@ -116,7 +116,8 @@ static int vaapi_mpeg2_decode_slice(AVCodecContext 
> *avctx, const uint8_t *buffer
>      /* Determine macroblock_offset */
>      init_get_bits(&gb, buffer, 8 * size);
>      start_code = get_bits(&gb, 32);
> -    assert((start_code & 0xffffff00) == 0x00000100);
> +    if ((start_code & 0xffffff00) == 0x00000100)
> +        return -1;

Ignore, is missing a '!' ...

Diego <--- should go to sleep
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to