Message ID | 20230712233706.449054-1-michael@niedermayer.cc |
---|---|
State | New |
Headers | show |
Series | [FFmpeg-devel,01/14] avradio/rds: reset station timeout on successfull group decode | expand |
Context | Check | Description |
---|---|---|
andriy/configure_x86 | warning | Failed to apply patch |
yinshiyou/configure_loongarch64 | warning | Failed to apply patch |
On Thu, Jul 13, 2023 at 01:36:53AM +0200, Michael Niedermayer wrote: > Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> > --- > libavradio/rds.c | 3 +++ > 1 file changed, 3 insertions(+) will apply [...]
diff --git a/libavradio/rds.c b/libavradio/rds.c index 99e5360b72..55b24a0d9e 100644 --- a/libavradio/rds.c +++ b/libavradio/rds.c @@ -123,6 +123,9 @@ static int decode_rds_group(SDRContext *sdr, Station *station, uint16_t group[4] return 0; // skip first packet with new PI, likely its just damaged } + //sucessfully decoding a RDS group implies that the station has been detected correctly + station->timeout = 0; + switch(a) { case 0: AV_WB16(station->name + 2*(group[1]&3), group[3]);
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> --- libavradio/rds.c | 3 +++ 1 file changed, 3 insertions(+)