ALT Linux Bugzilla
– Attachment 3483 Details for
Bug 19681
Не играет некоторые mp3-файлы
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
Broken xing vbr toc recognition patch
cmus-xing_headers-alt.patch (text/plain), 798 bytes, created by
Evgenii Terechkov
on 2009-04-25 11:28:43 MSD
(
hide
)
Description:
Broken xing vbr toc recognition patch
Filename:
MIME Type:
Creator:
Evgenii Terechkov
Created:
2009-04-25 11:28:43 MSD
Size:
798 bytes
patch
obsolete
>commit 7da65210cbbd47c42c02ffae5c61a56c26df499b >Author: Evgenii Terechkov <evg@altlinux.org> >Date: Sat Apr 25 15:06:51 2009 +0800 > > Fix broken xing header recognition > >diff --git a/nomad.c b/nomad.c >index 74a05a2..a6804f9 100644 >--- a/nomad.c >+++ b/nomad.c >@@ -154,12 +154,15 @@ static int xing_parse(struct nomad *nomad) > bitlen -= 32; > } > if (nomad->xing.flags & XING_TOC) { >- int i; >+ int i, prev = -1; > > if (bitlen < 800) > return -1; >- for (i = 0; i < 100; i++) >+ for (i = 0; i < 100; i++) { > nomad->xing.toc[i] = mad_bit_read(&ptr, 8); >+ if (nomad->xing.toc[i] < prev || (i == 0 && !nomad->xing.toc[i])) return -1; >+ prev = nomad->xing.toc[i]; >+ } > bitlen -= 800; > } > if (nomad->xing.flags & XING_SCALE) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 19681
:
3469
|
3470
|
3471
| 3483