fix left shift
This commit is contained in:
parent
25a4321d64
commit
49d0740e81
25
fix-left-shift.patch
Normal file
25
fix-left-shift.patch
Normal file
@ -0,0 +1,25 @@
|
||||
From fb72f9f311d396be2fb5c3ac48c05abce2d42f83 Mon Sep 17 00:00:00 2001
|
||||
From: caodongxia <315816521@qq.com>
|
||||
Date: Tue, 14 Dec 2021 20:37:56 +0800
|
||||
Subject: [PATCH] fix left shift
|
||||
|
||||
---
|
||||
src/opusfile.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/opusfile.c b/src/opusfile.c
|
||||
index 6deaeb0..3fdc0ac 100644
|
||||
--- a/src/opusfile.c
|
||||
+++ b/src/opusfile.c
|
||||
@@ -1021,7 +1021,7 @@ static opus_int64 op_rescale64(opus_int64 _x,opus_int64 _from,opus_int64 _to){
|
||||
_x-=_from-_x;
|
||||
frac|=1;
|
||||
}
|
||||
- else _x<<=1;
|
||||
+ else _x = (opus_int64)((opus_uint64)(_x) << 1);
|
||||
}
|
||||
ret=0;
|
||||
for(i=0;i<63;i++){
|
||||
--
|
||||
2.27.0
|
||||
|
||||
@ -1,12 +1,13 @@
|
||||
Name: opusfile
|
||||
Version: 0.11
|
||||
Release: 4
|
||||
Release: 5
|
||||
Summary: A high-level API provides seeking, decode, and playback of Opus streams
|
||||
License: BSD
|
||||
URL: http://www.opus-codec.org/
|
||||
Source0: http://downloads.xiph.org/releases/opus/%{name}-%{version}.tar.gz
|
||||
Patch0000: 0001-fix-MemorySanitizer-use-of-uninitialized-value.patch
|
||||
Patch0001: Fix-short-circuit-test-when-seeking-in-short-files.patch
|
||||
Patch0002: fix-left-shift.patch
|
||||
|
||||
BuildRequires: libogg-devel openssl-devel opus-devel
|
||||
|
||||
@ -51,6 +52,9 @@ Development package for opusfile package.
|
||||
%{_libdir}/{libopusfile.so,libopusurl.so}
|
||||
|
||||
%changelog
|
||||
* Tue Dec 14 2021 caodongxia <caodongxia@huawei.com> - 0.11-5
|
||||
- Fix left shift
|
||||
|
||||
* Tue Dec 14 2021 chenchen <chen_aka_jan@163.com> - 0.11-4
|
||||
- Fix short-circuit test when seeking in short files
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user