FFmpeg find_stream_info变量

  代码搜索

  D:\test\source\FFmpeg\fftools\ffplay.c(356):static int find_stream_info = 1;
  D:\test\source\FFmpeg\fftools\ffplay.c(2801):    if (find_stream_info) {
  D:\test\source\FFmpeg\fftools\ffplay.c(2802):        AVDictionary **opts = setup_find_stream_info_opts(ic, codec_opts);
  D:\test\source\FFmpeg\fftools\ffplay.c(2805):        err = avformat_find_stream_info(ic, opts);
  D:\test\source\FFmpeg\fftools\ffplay.c(3617):    { "find_stream_info", OPT_BOOL | OPT_INPUT | OPT_EXPERT, { &find_stream_info },


ffplay.c代码中会判断find_stream_info如果为真,就会调用avformat_find_stream_info探测码流格式,该变量在static const OptionDef options[]定义如下   

 { "find_stream_info", OPT_BOOL | OPT_INPUT | OPT_EXPERT, { &find_stream_info },
        "read and decode the streams to fill missing information with heuristics" },