Commit 429914a3 authored by Kostya Shishkov's avatar Kostya Shishkov

1l: correct argument order in avcodec_check_dimensions

Originally committed as revision 6400 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 3129f3bd
...@@ -136,7 +136,7 @@ static int decode_frame(AVCodecContext *avctx, ...@@ -136,7 +136,7 @@ static int decode_frame(AVCodecContext *avctx,
static int decode_init(AVCodecContext *avctx){ static int decode_init(AVCodecContext *avctx){
// QdrawContext * const a = avctx->priv_data; // 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; return 1;
} }
......
...@@ -520,7 +520,7 @@ static int decode_init(AVCodecContext *avctx) ...@@ -520,7 +520,7 @@ static int decode_init(AVCodecContext *avctx)
c->pic.data[0] = NULL; 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; return 1;
} }
......
...@@ -822,7 +822,7 @@ static int decode_init(AVCodecContext *avctx){ ...@@ -822,7 +822,7 @@ static int decode_init(AVCodecContext *avctx){
TM2Context * const l = avctx->priv_data; TM2Context * const l = avctx->priv_data;
int i; int i;
if (avcodec_check_dimensions(avctx, avctx->height, avctx->width) < 0) { if (avcodec_check_dimensions(avctx, avctx->width, avctx->height) < 0) {
return -1; return -1;
} }
if((avctx->width & 3) || (avctx->height & 3)){ if((avctx->width & 3) || (avctx->height & 3)){
......
...@@ -264,7 +264,7 @@ static int decode_init(AVCodecContext *avctx) ...@@ -264,7 +264,7 @@ static int decode_init(AVCodecContext *avctx)
c->pic.data[0] = NULL; c->pic.data[0] = NULL;
c->height = avctx->height; 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; return 1;
} }
......
...@@ -467,7 +467,7 @@ static int decode_init(AVCodecContext *avctx) ...@@ -467,7 +467,7 @@ static int decode_init(AVCodecContext *avctx)
c->width = avctx->width; c->width = avctx->width;
c->height = avctx->height; 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; return 1;
} }
c->bpp = avctx->bits_per_sample; c->bpp = avctx->bits_per_sample;
......
...@@ -616,7 +616,7 @@ static int decode_init(AVCodecContext *avctx) ...@@ -616,7 +616,7 @@ static int decode_init(AVCodecContext *avctx)
c->width = avctx->width; c->width = avctx->width;
c->height = avctx->height; 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; return 1;
} }
c->bpp = avctx->bits_per_sample; c->bpp = avctx->bits_per_sample;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment