Message ID | 20230708212530.109692-13-michael@niedermayer.cc |
---|---|
State | New |
Headers | show |
Series | [FFmpeg-devel,01/18] avradio/sdrdemux: Fix uninitialized access | expand |
Context | Check | Description |
---|---|---|
yinshiyou/configure_loongarch64 | warning | Failed to apply patch |
andriy/configure_x86 | warning | Failed to apply patch |
diff --git a/libavradio/sdrdemux.c b/libavradio/sdrdemux.c index 1c77583fd4..5300311c3a 100644 --- a/libavradio/sdrdemux.c +++ b/libavradio/sdrdemux.c @@ -1818,7 +1818,7 @@ process_next_block: int nb_stations = ff_sdr_find_stations(sdr, sdr->block_center_freq, sdr->sdr_sample_rate*0.5, station_list, FF_ARRAY_ELEMS(station_list)); for(int i = 0; i<nb_stations; i++) { Station *station = station_list[i]; - if (!station->stream) { + if (!station->stream && station->in_station_list) { /* audio stream */ AVStream *st = avformat_new_stream(s, NULL); SDRStream *sst;
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> --- libavradio/sdrdemux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)