[FFmpeg-devel] [PATCH] Patch cleanup for MPEG 1 & 2 optimizations

Jeff Downs heydowns
Mon Apr 14 04:26:58 CEST 2008


On Wed, 9 Apr 2008, strites wrote:

[...]

> diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
> index a555f7a..c128949 100644
> --- a/libavcodec/mpegvideo.c
> +++ b/libavcodec/mpegvideo.c
> @@ -1979,8 +1979,14 @@ skip_idct:
>  }
>  
>  void MPV_decode_mb(MpegEncContext *s, DCTELEM block[12][64]){
> -    if(s->avctx->lowres) MPV_decode_mb_internal(s, block, 1);
> -    else                  MPV_decode_mb_internal(s, block, 0);
> +#ifndef CONFIG_SMALL
> +    if(s->out_format == FMT_MPEG1) {
> +        if(s->avctx->lowres) MPV_decode_mb_internal(s, block, 1, 0);
> +        else                 MPV_decode_mb_internal(s, block, 0, 0);
> +    } else
> +#endif
> +    if(s->avctx->lowres) MPV_decode_mb_internal(s, block, 1, 1);
> +    else                  MPV_decode_mb_internal(s, block, 0, 1);
>  }

The last arg in each _internal function call look backwards here....


	-Jeff





More information about the ffmpeg-devel mailing list