See the thread:
Subject: [FFmpeg-devel] [PATCH] Add support to input device to ffprobe
Date: Sun, 21 Feb 2010 14:57:44 +0100
Originally committed as revision 22231 to svn://svn.ffmpeg.org/ffmpeg/trunk
... | ... |
@@ -19,11 +19,14 @@ |
19 | 19 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
20 | 20 |
*/ |
21 | 21 |
|
22 |
+#include "config.h" |
|
23 |
+ |
|
22 | 24 |
#undef HAVE_AV_CONFIG_H |
23 | 25 |
#include "libavformat/avformat.h" |
24 | 26 |
#include "libavcodec/avcodec.h" |
25 | 27 |
#include "libavcodec/opt.h" |
26 | 28 |
#include "libavutil/pixdesc.h" |
29 |
+#include "libavdevice/avdevice.h" |
|
27 | 30 |
#include "cmdutils.h" |
28 | 31 |
|
29 | 32 |
const char program_name[] = "FFprobe"; |
... | ... |
@@ -334,6 +337,9 @@ static const OptionDef options[] = { |
334 | 334 |
int main(int argc, char **argv) |
335 | 335 |
{ |
336 | 336 |
av_register_all(); |
337 |
+#if CONFIG_AVDEVICE |
|
338 |
+ avdevice_register_all(); |
|
339 |
+#endif |
|
337 | 340 |
|
338 | 341 |
show_banner(); |
339 | 342 |
parse_options(argc, argv, options, opt_input_file); |