Mailinglist Archive: packet-writing (84 mails)

< Previous Next >
Re: New cdrwtool (trying to format too many blocks)
  • From: Ben Fennema <bfennema@xxxxxxxxxxxxx>
  • Date: Fri, 1 Feb 2002 18:55:38 +0000 (UTC)
  • Message-id: <20020201105708.A3140@xxxxxxxxxxxxxxxxxxxxxxxxxx>
On Fri, Feb 01, 2002 at 11:09:13AM +0100, Norbert Preining wrote:
> Hi Ben!
>
> On Thu, 31 Jan 2002 11:31:16 -0800, Ben Fennema wrote:
> > If your seeing the new cdrwtool fail and the value for blocks is more
> > than it used to be, could you send me the output of cdrwtool -i.

Ok, give this patch a try.. It should fix the problem.

Ben

diff -u -p -r1.3 main.c
--- main.c 2002/01/30 21:39:59 1.3
+++ main.c 2002/02/01 18:48:13
@@ -136,7 +136,7 @@ int quick_setup(int fd, struct cdrw_disc
return ret;

blocks = msf_to_lba(di.lead_out_m, di.lead_out_s, di.lead_out_f) - 152;
- if (disc->fpacket && !(ti.packet && ti.fp))
+ if (disc->fpacket)
{
/* fixed packets format usable blocks */
blocks = ((blocks + 7) / (disc->packet_size + 7)) * disc->packet_size;

< Previous Next >
References