|
|
@ -559,13 +559,14 @@ static AVCodec *choose_decoder(OptionsContext *o, AVFormatContext *s, AVStream * |
|
|
|
static void add_input_streams(OptionsContext *o, AVFormatContext *ic) |
|
|
|
static void add_input_streams(OptionsContext *o, AVFormatContext *ic) |
|
|
|
{ |
|
|
|
{ |
|
|
|
int i; |
|
|
|
int i; |
|
|
|
char *next, *codec_tag = NULL; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (i = 0; i < ic->nb_streams; i++) { |
|
|
|
for (i = 0; i < ic->nb_streams; i++) { |
|
|
|
AVStream *st = ic->streams[i]; |
|
|
|
AVStream *st = ic->streams[i]; |
|
|
|
AVCodecContext *dec = st->codec; |
|
|
|
AVCodecContext *dec = st->codec; |
|
|
|
InputStream *ist = av_mallocz(sizeof(*ist)); |
|
|
|
InputStream *ist = av_mallocz(sizeof(*ist)); |
|
|
|
char *framerate = NULL, *hwaccel = NULL, *hwaccel_device = NULL; |
|
|
|
char *framerate = NULL, *hwaccel = NULL, *hwaccel_device = NULL; |
|
|
|
|
|
|
|
char *codec_tag = NULL; |
|
|
|
|
|
|
|
char *next; |
|
|
|
|
|
|
|
|
|
|
|
if (!ist) |
|
|
|
if (!ist) |
|
|
|
exit_program(1); |
|
|
|
exit_program(1); |
|
|
@ -2780,7 +2781,7 @@ const OptionDef options[] = { |
|
|
|
{ "frames", OPT_INT64 | HAS_ARG | OPT_SPEC | OPT_OUTPUT, { .off = OFFSET(max_frames) }, |
|
|
|
{ "frames", OPT_INT64 | HAS_ARG | OPT_SPEC | OPT_OUTPUT, { .off = OFFSET(max_frames) }, |
|
|
|
"set the number of frames to record", "number" }, |
|
|
|
"set the number of frames to record", "number" }, |
|
|
|
{ "tag", OPT_STRING | HAS_ARG | OPT_SPEC | |
|
|
|
{ "tag", OPT_STRING | HAS_ARG | OPT_SPEC | |
|
|
|
OPT_EXPERT | OPT_OUTPUT, { .off = OFFSET(codec_tags) }, |
|
|
|
OPT_EXPERT | OPT_OUTPUT | OPT_INPUT, { .off = OFFSET(codec_tags) }, |
|
|
|
"force codec tag/fourcc", "fourcc/tag" }, |
|
|
|
"force codec tag/fourcc", "fourcc/tag" }, |
|
|
|
{ "q", HAS_ARG | OPT_EXPERT | OPT_DOUBLE | |
|
|
|
{ "q", HAS_ARG | OPT_EXPERT | OPT_DOUBLE | |
|
|
|
OPT_SPEC | OPT_OUTPUT, { .off = OFFSET(qscale) }, |
|
|
|
OPT_SPEC | OPT_OUTPUT, { .off = OFFSET(qscale) }, |
|
|
|