From 429914a330b17833adefcb1fbb9d07f0e858b1d5 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Sun, 1 Oct 2006 05:09:20 +0000 Subject: [PATCH] 1l: correct argument order in avcodec_check_dimensions Originally committed as revision 6400 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/qdrw.c | 2 +- libavcodec/smacker.c | 2 +- libavcodec/truemotion2.c | 2 +- libavcodec/tscc.c | 2 +- libavcodec/vmnc.c | 2 +- libavcodec/zmbv.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libavcodec/qdrw.c b/libavcodec/qdrw.c index 8463659174..6348161618 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 2d4c1e242b..5c56999397 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 84b940d422..671bcb8dae 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 19edf3b2ed..b4d3c9d613 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 c4e5956203..739962a382 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 fdca4d2a28..005a5328b7 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;