diff mbox series

[FFmpeg-devel,6/6] tools/uncoded_frame: avradio support

Message ID 20230722192957.703-6-michael@niedermayer.cc
State New
Headers show
Series [FFmpeg-devel,1/6] configure: libavradio support | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Michael Niedermayer July 22, 2023, 7:29 p.m. UTC
This avoids keeping diffs to tools in the libavradio repository

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
---
 tools/uncoded_frame.c | 7 +++++++
 1 file changed, 7 insertions(+)
diff mbox series

Patch

diff --git a/tools/uncoded_frame.c b/tools/uncoded_frame.c
index edea2367c4..f856b02c77 100644
--- a/tools/uncoded_frame.c
+++ b/tools/uncoded_frame.c
@@ -1,8 +1,12 @@ 
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include "config.h"
 #include "libavutil/avassert.h"
 #include "libavdevice/avdevice.h"
+#if CONFIG_AVRADIO
+#include "libavradio/avradio.h"
+#endif
 #include "libavfilter/avfilter.h"
 #include "libavfilter/buffersink.h"
 #include "libavformat/avformat.h"
@@ -64,6 +68,9 @@  int main(int argc, char **argv)
     nb_out_dev = argc - 2;
 
     avdevice_register_all();
+#if CONFIG_AVRADIO
+    avradio_register_all();
+#endif
 
     /* Create input graph */
     if (!(in_graph = avfilter_graph_alloc())) {