Mercurial > libavcodec.hg
comparison truemotion2.c @ 3800:9b75ab171fa9 libavcodec
1l: correct argument order in avcodec_check_dimensions
author | kostya |
---|---|
date | Sun, 01 Oct 2006 05:09:20 +0000 |
parents | 0b546eab515d |
children | c8c591fe26f8 |
comparison
equal
deleted
inserted
replaced
3799:81638b2fbeba | 3800:9b75ab171fa9 |
---|---|
820 | 820 |
821 static int decode_init(AVCodecContext *avctx){ | 821 static int decode_init(AVCodecContext *avctx){ |
822 TM2Context * const l = avctx->priv_data; | 822 TM2Context * const l = avctx->priv_data; |
823 int i; | 823 int i; |
824 | 824 |
825 if (avcodec_check_dimensions(avctx, avctx->height, avctx->width) < 0) { | 825 if (avcodec_check_dimensions(avctx, avctx->width, avctx->height) < 0) { |
826 return -1; | 826 return -1; |
827 } | 827 } |
828 if((avctx->width & 3) || (avctx->height & 3)){ | 828 if((avctx->width & 3) || (avctx->height & 3)){ |
829 av_log(avctx, AV_LOG_ERROR, "Width and height must be multiple of 4\n"); | 829 av_log(avctx, AV_LOG_ERROR, "Width and height must be multiple of 4\n"); |
830 return -1; | 830 return -1; |