Message ID | 20230730221131.1205193-7-michael@niedermayer.cc |
---|---|
State | New |
Headers | show |
Series | [FFmpeg-devel,01/12] avradio/avformat/sdrdemux: Move agc_gain into local variable | expand |
Context | Check | Description |
---|---|---|
andriy/configure_x86 | warning | Failed to apply patch |
yinshiyou/configure_loongarch64 | warning | Failed to apply patch |
diff --git a/libavformat/sdrdemux.c b/libavformat/sdrdemux.c index 69349add7b..8f0f4657f3 100644 --- a/libavformat/sdrdemux.c +++ b/libavformat/sdrdemux.c @@ -1150,6 +1150,8 @@ static int demodulate_fm(SDRContext *sdr, Station *station, AVStream *st, AVPack sst->out_buf[2*i+0] = m + q; sst->out_buf[2*i+1] = m - q; } else { + newbuf[2*i+1] = 0; + sst->out_buf[2*i+0] = sst->out_buf[2*i+1] = m; }
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> --- libavformat/sdrdemux.c | 2 ++ 1 file changed, 2 insertions(+)