Revision aa9b754f ffmpeg.c

View differences:

ffmpeg.c
2384 2384
        fprintf(stderr, "Incorrect top crop size\n");
2385 2385
        av_exit(1);
2386 2386
    }
2387
    if ((frame_topBand % 2) != 0) {
2388
        fprintf(stderr, "Top crop size must be a multiple of 2\n");
2389
        av_exit(1);
2390
    }
2391 2387
    if ((frame_topBand) >= frame_height){
2392 2388
        fprintf(stderr, "Vertical crop dimensions are outside the range of the original image.\nRemember to crop first and scale second.\n");
2393 2389
        av_exit(1);
......
2402 2398
        fprintf(stderr, "Incorrect bottom crop size\n");
2403 2399
        av_exit(1);
2404 2400
    }
2405
    if ((frame_bottomBand % 2) != 0) {
2406
        fprintf(stderr, "Bottom crop size must be a multiple of 2\n");
2407
        av_exit(1);
2408
    }
2409 2401
    if ((frame_bottomBand) >= frame_height){
2410 2402
        fprintf(stderr, "Vertical crop dimensions are outside the range of the original image.\nRemember to crop first and scale second.\n");
2411 2403
        av_exit(1);
......
2420 2412
        fprintf(stderr, "Incorrect left crop size\n");
2421 2413
        av_exit(1);
2422 2414
    }
2423
    if ((frame_leftBand % 2) != 0) {
2424
        fprintf(stderr, "Left crop size must be a multiple of 2\n");
2425
        av_exit(1);
2426
    }
2427 2415
    if ((frame_leftBand) >= frame_width){
2428 2416
        fprintf(stderr, "Horizontal crop dimensions are outside the range of the original image.\nRemember to crop first and scale second.\n");
2429 2417
        av_exit(1);
......
2438 2426
        fprintf(stderr, "Incorrect right crop size\n");
2439 2427
        av_exit(1);
2440 2428
    }
2441
    if ((frame_rightBand % 2) != 0) {
2442
        fprintf(stderr, "Right crop size must be a multiple of 2\n");
2443
        av_exit(1);
2444
    }
2445 2429
    if ((frame_rightBand) >= frame_width){
2446 2430
        fprintf(stderr, "Horizontal crop dimensions are outside the range of the original image.\nRemember to crop first and scale second.\n");
2447 2431
        av_exit(1);
......
2483 2467
        fprintf(stderr, "Incorrect top pad size\n");
2484 2468
        av_exit(1);
2485 2469
    }
2486
    if ((frame_padtop % 2) != 0) {
2487
        fprintf(stderr, "Top pad size must be a multiple of 2\n");
2488
        av_exit(1);
2489
    }
2490 2470
}
2491 2471

  
2492 2472
static void opt_frame_pad_bottom(const char *arg)
......
2496 2476
        fprintf(stderr, "Incorrect bottom pad size\n");
2497 2477
        av_exit(1);
2498 2478
    }
2499
    if ((frame_padbottom % 2) != 0) {
2500
        fprintf(stderr, "Bottom pad size must be a multiple of 2\n");
2501
        av_exit(1);
2502
    }
2503 2479
}
2504 2480

  
2505 2481

  
......
2510 2486
        fprintf(stderr, "Incorrect left pad size\n");
2511 2487
        av_exit(1);
2512 2488
    }
2513
    if ((frame_padleft % 2) != 0) {
2514
        fprintf(stderr, "Left pad size must be a multiple of 2\n");
2515
        av_exit(1);
2516
    }
2517 2489
}
2518 2490

  
2519 2491

  
......
2524 2496
        fprintf(stderr, "Incorrect right pad size\n");
2525 2497
        av_exit(1);
2526 2498
    }
2527
    if ((frame_padright % 2) != 0) {
2528
        fprintf(stderr, "Right pad size must be a multiple of 2\n");
2529
        av_exit(1);
2530
    }
2531 2499
}
2532 2500

  
2533 2501
static void list_fmts(void (*get_fmt_string)(char *buf, int buf_size, int fmt), int nb_fmts)

Also available in: Unified diff