summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ffmpeg.c2
-rw-r--r--ffplay.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 81b454f025..3b211f0873 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -4077,7 +4077,9 @@ int main(int argc, char **argv)
int64_t ti;
avcodec_register_all();
+#if CONFIG_AVDEVICE
avdevice_register_all();
+#endif
av_register_all();
#if HAVE_ISATTY
diff --git a/ffplay.c b/ffplay.c
index d827d4461b..e84e290be7 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -3100,7 +3100,9 @@ int main(int argc, char **argv)
/* register all codecs, demux and protocols */
avcodec_register_all();
+#if CONFIG_AVDEVICE
avdevice_register_all();
+#endif
#if CONFIG_AVFILTER
avfilter_register_all();
#endif