unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob 665732888ff91b4ba8b1f6111fcb4c38e57b3f54 972 bytes (raw)
name: gnu/packages/patches/taglib-fix-possible-ogg-packet-loss.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
 
From 9336c82da3a04552168f208cd7a5fa4646701ea4 Mon Sep 17 00:00:00 2001
From: Tsuda Kageyu <tsuda.kageyu@gmail.com>
Date: Thu, 1 Dec 2016 11:32:01 +0900
Subject: [PATCH] Fix possible Ogg packet losses.

See https://github.com/taglib/taglib/issues/864 for details.

---
 taglib/ogg/oggfile.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/taglib/ogg/oggfile.cpp b/taglib/ogg/oggfile.cpp
index 86b0b0764..c36e4d46c 100644
--- a/taglib/ogg/oggfile.cpp
+++ b/taglib/ogg/oggfile.cpp
@@ -253,7 +253,7 @@ void Ogg::File::writePacket(unsigned int i, const ByteVector &packet)
   ByteVectorList packets = firstPage->packets();
   packets[i - firstPage->firstPacketIndex()] = packet;
 
-  if(firstPage != lastPage && lastPage->packetCount() > 2) {
+  if(firstPage != lastPage && lastPage->packetCount() > 1) {
     ByteVectorList lastPagePackets = lastPage->packets();
     lastPagePackets.erase(lastPagePackets.begin());
     packets.append(lastPagePackets);

debug log:

solving 665732888f ...
found 665732888f in https://yhetil.org/guix-patches/87r1s6oam4.fsf@gmx.com/

applying [1/1] https://yhetil.org/guix-patches/87r1s6oam4.fsf@gmx.com/
diff --git a/gnu/packages/patches/taglib-fix-possible-ogg-packet-loss.patch b/gnu/packages/patches/taglib-fix-possible-ogg-packet-loss.patch
new file mode 100644
index 0000000000..665732888f

1:25: trailing whitespace.
 
Checking patch gnu/packages/patches/taglib-fix-possible-ogg-packet-loss.patch...
Applied patch gnu/packages/patches/taglib-fix-possible-ogg-packet-loss.patch cleanly.
warning: 1 line adds whitespace errors.

index at:
100644 665732888ff91b4ba8b1f6111fcb4c38e57b3f54	gnu/packages/patches/taglib-fix-possible-ogg-packet-loss.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).