diff mbox series

[FFmpeg-devel,12/18] avradio/sdrdemux: Set AVFMTCTX_NOHEADER

Message ID 20230708212530.109692-12-michael@niedermayer.cc
State New
Headers show
Series [FFmpeg-devel,01/18] avradio/sdrdemux: Fix uninitialized access | expand

Checks

Context Check Description
yinshiyou/configure_loongarch64 warning Failed to apply patch
andriy/configure_x86 warning Failed to apply patch

Commit Message

Michael Niedermayer July 8, 2023, 9:25 p.m. UTC
This is needed as stations may not be detected immedeately

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
---
 libavradio/sdrdemux.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/libavradio/sdrdemux.c b/libavradio/sdrdemux.c
index 2bce1045f4..1c77583fd4 100644
--- a/libavradio/sdrdemux.c
+++ b/libavradio/sdrdemux.c
@@ -1425,6 +1425,7 @@  int ff_sdr_common_init(AVFormatContext *s)
     float scale = 1.0 / sdr->sample_scale;
 
     sdr->avfmt = s;
+    s->ctx_flags |= AVFMTCTX_NOHEADER;
 
     if (sdr->width>1 && sdr->height>1) {
         /* video stream */