[FFmpeg-devel] Collection of patches

Benoit Fouet benoit.fouet
Thu Apr 24 13:28:29 CEST 2008


Thorsten Jordan wrote:
> sorry, my mistake, here is a version with all things fixed, it compiles
> also (should have checked before)
>
>   
> ------------------------------------------------------------------------
>
> Index: libavcodec/libxvidff.c
> ===================================================================
> --- libavcodec/libxvidff.c	(Revision 12933)
> +++ libavcodec/libxvidff.c	(Arbeitskopie)
> @@ -406,6 +406,17 @@
>      xvid_enc_frame.motion = x->me_flags;
>      xvid_enc_frame.type = XVID_TYPE_AUTO;
>  
> +    /* Pixel aspect ratio setting */
> +    if (avctx->sample_aspect_ratio.num < 1 || avctx->sample_aspect_ratio.num > 255 ||
> +        avctx->sample_aspect_ratio.den < 1 || avctx->sample_aspect_ratio.den > 255) {
> +        av_log(avctx, AV_LOG_ERROR, "Invalid pixel aspect ratio %i/%i\n",
> +            avctx->sample_aspect_ratio.num, avctx->sample_aspect_ratio.den);
> +            return -1;
>   

weird indentation

-- 
Benoit Fouet
Purple Labs S.A.
www.purplelabs.com




More information about the ffmpeg-devel mailing list