* [Bluez-devel] sbcinfo.c frame_len problem?
@ 2005-03-15 7:01 Brad Midgley
2005-03-15 7:44 ` Marcel Holtmann
0 siblings, 1 reply; 4+ messages in thread
From: Brad Midgley @ 2005-03-15 7:01 UTC (permalink / raw)
To: BlueZ Mailing List
Henryk/Marcel...
This was in an anonymous bug reported at the sf project.
=====================================
In sbcinfo.c, the frame_len is calculated incorrectly.
195: frame_len[0] = count + 4;
The output of sbc_test_01.sbc results in:
Frame length 46 Bytes
instead of 42 (according to "A2DP Test v10.pdf").
=====================================
should the "+ 4" be dropped?
Brad
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Bluez-devel] sbcinfo.c frame_len problem?
2005-03-15 7:01 [Bluez-devel] sbcinfo.c frame_len problem? Brad Midgley
@ 2005-03-15 7:44 ` Marcel Holtmann
2005-03-15 7:54 ` Marcel Holtmann
0 siblings, 1 reply; 4+ messages in thread
From: Marcel Holtmann @ 2005-03-15 7:44 UTC (permalink / raw)
To: BlueZ Mailing List
Hi Brad,
> This was in an anonymous bug reported at the sf project.
>
> =====================================
> In sbcinfo.c, the frame_len is calculated incorrectly.
>
> 195: frame_len[0] = count + 4;
>
> The output of sbc_test_01.sbc results in:
>
> Frame length 46 Bytes
>
> instead of 42 (according to "A2DP Test v10.pdf").
> =====================================
>
> should the "+ 4" be dropped?
I have no idea, but the question is if the calculation shows always four
bytes too much?
Regards
Marcel
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Bluez-devel] sbcinfo.c frame_len problem?
2005-03-15 7:44 ` Marcel Holtmann
@ 2005-03-15 7:54 ` Marcel Holtmann
2005-03-15 15:57 ` Brad Midgley
0 siblings, 1 reply; 4+ messages in thread
From: Marcel Holtmann @ 2005-03-15 7:54 UTC (permalink / raw)
To: BlueZ Mailing List
Hi Brad,
> > This was in an anonymous bug reported at the sf project.
> >
> > =====================================
> > In sbcinfo.c, the frame_len is calculated incorrectly.
> >
> > 195: frame_len[0] = count + 4;
> >
> > The output of sbc_test_01.sbc results in:
> >
> > Frame length 46 Bytes
> >
> > instead of 42 (according to "A2DP Test v10.pdf").
> > =====================================
> >
> > should the "+ 4" be dropped?
>
> I have no idea, but the question is if the calculation shows always four
> bytes too much?
actually the answer to this was easier then I thought. The bug is not in
line 195. I don't even had to read the specification to find the answer
to this problem. The display of the value is simply wrong.
diff -u -r1.3 sbcinfo.c
--- sbcinfo.c 23 Nov 2004 09:12:22 -0000 1.3
+++ sbcinfo.c 15 Mar 2005 07:49:28 -0000
@@ -275,7 +275,7 @@
printf(", %d", bitpool[n]);
printf("\n");
printf("Number of frames\t%d\n", num);
- printf("Frame length\t\t%d", frame_len[0] + 4);
+ printf("Frame length\t\t%d", frame_len[0]);
for (n = 1; n < SIZE; n++)
if (frame_len[n] > 0)
printf(", %d", frame_len[n]);
You will see it when checking with sbc_test_09.sbc and sbc_test_10.sbc
for example.
Regards
Marcel
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Bluez-devel] sbcinfo.c frame_len problem?
2005-03-15 7:54 ` Marcel Holtmann
@ 2005-03-15 15:57 ` Brad Midgley
0 siblings, 0 replies; 4+ messages in thread
From: Brad Midgley @ 2005-03-15 15:57 UTC (permalink / raw)
To: bluez-devel
Marcel
> actually the answer to this was easier then I thought. The bug is not in
> line 195. I don't even had to read the specification to find the answer
> to this problem. The display of the value is simply wrong.
thanks! Sorry I didn't catch that. I closed the bug.
Brad
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-03-15 15:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-15 7:01 [Bluez-devel] sbcinfo.c frame_len problem? Brad Midgley
2005-03-15 7:44 ` Marcel Holtmann
2005-03-15 7:54 ` Marcel Holtmann
2005-03-15 15:57 ` Brad Midgley
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.