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,
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;
}
......
......@@ -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;
}
......
......@@ -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)){
......
......@@ -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;
}
......
......@@ -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;
......
......@@ -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;
......
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