comparison roqvideoenc.c @ 10397:d7ed9dcc78e3 libavcodec

Remove unnecessary calls to avcodec_check_dimensions, the check is already done at a higher level.
author reimar
date Tue, 13 Oct 2009 20:13:28 +0000
parents 38cfe222e1a4
children 8a4984c5cacc
comparison
equal deleted inserted replaced
10396:2bb3882075b6 10397:d7ed9dcc78e3
937 } 937 }
938 938
939 if (((avctx->width)&(avctx->width-1))||((avctx->height)&(avctx->height-1))) 939 if (((avctx->width)&(avctx->width-1))||((avctx->height)&(avctx->height-1)))
940 av_log(avctx, AV_LOG_ERROR, "Warning: dimensions not power of two\n"); 940 av_log(avctx, AV_LOG_ERROR, "Warning: dimensions not power of two\n");
941 941
942 if (avcodec_check_dimensions(avctx, avctx->width, avctx->height)) {
943 av_log(avctx, AV_LOG_ERROR, "Invalid dimensions (%dx%d)\n",
944 avctx->width, avctx->height);
945 return -1;
946 }
947
948 enc->width = avctx->width; 942 enc->width = avctx->width;
949 enc->height = avctx->height; 943 enc->height = avctx->height;
950 944
951 enc->framesSinceKeyframe = 0; 945 enc->framesSinceKeyframe = 0;
952 enc->first_frame = 1; 946 enc->first_frame = 1;