Revision 90da2b50 ffmpeg.c

View differences:

ffmpeg.c
2536 2536

  
2537 2537
static void opt_frame_pix_fmt(const char *arg)
2538 2538
{
2539
    if (strcmp(arg, "list"))
2539
    if (strcmp(arg, "list")) {
2540 2540
        frame_pix_fmt = avcodec_get_pix_fmt(arg);
2541
    else {
2541
        if (frame_pix_fmt == PIX_FMT_NONE) {
2542
            fprintf(stderr, "Unknown pixel format requested: %s\n", arg);
2543
            av_exit(1);
2544
        }
2545
    } else {
2542 2546
        list_fmts(avcodec_pix_fmt_string, PIX_FMT_NB);
2543 2547
        av_exit(0);
2544 2548
    }

Also available in: Unified diff