Revision 50e3477f

View differences:

ffmpeg.c
196 196
static char *vstats_filename;
197 197
static FILE *vstats_file;
198 198
static int opt_programid = 0;
199
static int copy_initial_nonkeyframes = 0;
199 200

  
200 201
static int rate_emu = 0;
201 202

  
......
1353 1354
                        AVPacket opkt;
1354 1355
                        av_init_packet(&opkt);
1355 1356

  
1356
                        if ((!ost->frame_number && !(pkt->flags & PKT_FLAG_KEY)) && start_time)
1357
                        if ((!ost->frame_number && !(pkt->flags & PKT_FLAG_KEY)) && !copy_initial_nonkeyframes)
1357 1358
                            continue;
1358 1359

  
1359 1360
                        /* no reencoding needed : output the packet directly */
......
3767 3768
    { "dts_delta_threshold", HAS_ARG | OPT_FLOAT | OPT_EXPERT, {(void*)&dts_delta_threshold}, "timestamp discontinuity delta threshold", "threshold" },
3768 3769
    { "programid", HAS_ARG | OPT_INT | OPT_EXPERT, {(void*)&opt_programid}, "desired program number", "" },
3769 3770
    { "xerror", OPT_BOOL, {(void*)&exit_on_error}, "exit on error", "error" },
3771
    { "copyinkf", OPT_BOOL | OPT_EXPERT, {(void*)&copy_initial_nonkeyframes}, "copy initial non-keyframes" },
3770 3772

  
3771 3773
    /* video options */
3772 3774
    { "b", OPT_FUNC2 | HAS_ARG | OPT_VIDEO, {(void*)opt_bitrate}, "set bitrate (in bits/s)", "bitrate" },

Also available in: Unified diff