@@ -219,9 +219,11 @@ int ff_sdr_vissualization(SDRContext *sdr, AVStream *st, AVPacket *pkt)
} else {
snprintf(text, sizeof(text), "%s ", ff_sdr_modulation_descs[s->modulation].shortname);
}
- av_strlcatf(text, sizeof(text), "%f Mhz %d %d %d",
+ draw_string(pkt->data, 4*w, text, xmid + 8*yd, 320*h2, xd, yd, color, color, color*(s->stream ? 2 : 1), w, h, 0);
+ pos = strlen(text);
+ snprintf(text, sizeof(text), "%f Mhz %d %d %d",
f/1000000, (int)s->score, ff_sdr_histogram_score(s), s->timeout);
- draw_string(pkt->data, 4*w, text, xmid + 8*yd, 320*h2, xd, yd, color, color, color, w, h, 0);
+ draw_string(pkt->data, 4*w, text, xmid + 8*yd, 320*h2, xd, yd, color, color, color, w, h, pos);
if (s->radiotext[0]) {
draw_string(pkt->data, 4*w, s->radiotext, xmid + 8*yd, 320*h2 + 24*yd, xd, yd, color, color, color, w, h, 0);
}
@@ -52,4 +52,4 @@
4, 4096, 4096, 1024, 2048, 0xdcd6ff8d
5, 4096, 4096, 1024, 2048, 0xedac0493
6, 4096, 4096, 1024, 2048, 0x970a0066
-0, 3, 3, 1, 320000, 0x73e13a75
+0, 3, 3, 1, 320000, 0x9fb0c309
@@ -19,7 +19,7 @@
2, 8196, 8196, 4096, 8192, 0xb966fb19
1, 12292, 12292, 4096, 8192, 0x6d8ffe6e
2, 12292, 12292, 4096, 8192, 0x51d1fb50
-0, 3, 3, 1, 320000, 0x1b178638
+0, 3, 3, 1, 320000, 0xf8b7b144
1, 16388, 16388, 4096, 8192, 0x8c000600
2, 16388, 16388, 4096, 8192, 0x335ff20c
-0, 4, 4, 1, 320000, 0x49dd90cc
+0, 4, 4, 1, 320000, 0xab42bbc7
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> --- libavradio/vissualize.c | 6 ++++-- tests/ref/fate/sdr-am | 2 +- tests/ref/fate/sdr-fm | 4 ++-- 3 files changed, 7 insertions(+), 5 deletions(-)