From: Kostya Shishkov Date: Sun, 1 Oct 2006 05:09:20 +0000 (+0000) Subject: 1l: correct argument order in avcodec_check_dimensions X-Git-Tag: v0.5~11703 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=429914a330b17833adefcb1fbb9d07f0e858b1d5;p=platform%2Fupstream%2Flibav.git 1l: correct argument order in avcodec_check_dimensions Originally committed as revision 6400 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/libavcodec/qdrw.c b/libavcodec/qdrw.c index 8463659..6348161 100644 --- a/libavcodec/qdrw.c +++ b/libavcodec/qdrw.c @@ -136,7 +136,7 @@ static int decode_frame(AVCodecContext *avctx, static int decode_init(AVCodecContext *avctx){ // QdrawContext * const a = avctx->priv_data; - if (avcodec_check_dimensions(avctx, avctx->height, avctx->width) < 0) { + if (avcodec_check_dimensions(avctx, avctx->width, avctx->height) < 0) { return 1; } diff --git a/libavcodec/smacker.c b/libavcodec/smacker.c index 2d4c1e2..5c56999 100644 --- a/libavcodec/smacker.c +++ b/libavcodec/smacker.c @@ -520,7 +520,7 @@ static int decode_init(AVCodecContext *avctx) c->pic.data[0] = NULL; - if (avcodec_check_dimensions(avctx, avctx->height, avctx->width) < 0) { + if (avcodec_check_dimensions(avctx, avctx->width, avctx->height) < 0) { return 1; } diff --git a/libavcodec/truemotion2.c b/libavcodec/truemotion2.c index 84b940d..671bcb8 100644 --- a/libavcodec/truemotion2.c +++ b/libavcodec/truemotion2.c @@ -822,7 +822,7 @@ static int decode_init(AVCodecContext *avctx){ TM2Context * const l = avctx->priv_data; int i; - if (avcodec_check_dimensions(avctx, avctx->height, avctx->width) < 0) { + if (avcodec_check_dimensions(avctx, avctx->width, avctx->height) < 0) { return -1; } if((avctx->width & 3) || (avctx->height & 3)){ diff --git a/libavcodec/tscc.c b/libavcodec/tscc.c index 19edf3b..b4d3c9d 100644 --- a/libavcodec/tscc.c +++ b/libavcodec/tscc.c @@ -264,7 +264,7 @@ static int decode_init(AVCodecContext *avctx) c->pic.data[0] = NULL; c->height = avctx->height; - if (avcodec_check_dimensions(avctx, avctx->height, avctx->width) < 0) { + if (avcodec_check_dimensions(avctx, avctx->width, avctx->height) < 0) { return 1; } diff --git a/libavcodec/vmnc.c b/libavcodec/vmnc.c index c4e5956..739962a 100644 --- a/libavcodec/vmnc.c +++ b/libavcodec/vmnc.c @@ -467,7 +467,7 @@ static int decode_init(AVCodecContext *avctx) c->width = avctx->width; c->height = avctx->height; - if (avcodec_check_dimensions(avctx, avctx->height, avctx->width) < 0) { + if (avcodec_check_dimensions(avctx, avctx->width, avctx->height) < 0) { return 1; } c->bpp = avctx->bits_per_sample; diff --git a/libavcodec/zmbv.c b/libavcodec/zmbv.c index fdca4d2..005a532 100644 --- a/libavcodec/zmbv.c +++ b/libavcodec/zmbv.c @@ -616,7 +616,7 @@ static int decode_init(AVCodecContext *avctx) c->width = avctx->width; c->height = avctx->height; - if (avcodec_check_dimensions(avctx, avctx->height, avctx->width) < 0) { + if (avcodec_check_dimensions(avctx, avctx->width, avctx->height) < 0) { return 1; } c->bpp = avctx->bits_per_sample;