]> git.sesse.net Git - ffmpeg/blobdiff - ffplay.c
Remove unnecessary checks before calling free
[ffmpeg] / ffplay.c
index d827d4461bb678d744225964c9e8faf04da98cc7..e84e290be703bd643530d70c50eda9e022b031ab 100644 (file)
--- 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