[brasero] burn-audio2cue: Avoid generating invalid frame number 75
- From: Joshua Lock <joshuagl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [brasero] burn-audio2cue: Avoid generating invalid frame number 75
- Date: Thu, 22 Aug 2013 16:14:47 +0000 (UTC)
commit 4dce1774a1fef76adeb9d48c51f2f9465a84ab0c
Author: Tanguy Ortolo <tanguy+debian ortolo eu>
Date: Thu Aug 22 17:08:48 2013 +0100
burn-audio2cue: Avoid generating invalid frame number 75
The conditional increment to the frame number, which is probably meant to
avoid loosing the last incomplete frame in the very last track of a disk,
has the side effect of generating frame numbers equal to 75, when they
should be between 0 and 74 included, which results in an unburnable image.
While the code could be adapted to count the last frame, it is clearer and
less intrusive to the original code to simply remove the conditional
increment, and possibily loosing 1/75th a second on the very last track
should not matter to anyone.
https://bugzilla.gnome.org/show_bug.cgi?id=664756
plugins/audio2cue/burn-audio2cue.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/audio2cue/burn-audio2cue.c b/plugins/audio2cue/burn-audio2cue.c
index d601053..2601533 100644
--- a/plugins/audio2cue/burn-audio2cue.c
+++ b/plugins/audio2cue/burn-audio2cue.c
@@ -317,7 +317,7 @@ brasero_audio2cue_len_to_string (guint64 len)
else
frame = len * 75;
- frame = frame / 1000000000 + ((frame % 1000000000LL) ? 1:0);
+ frame = frame / 1000000000;
len /= 1000000000LL;
min = len / 60;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]