!10 修复左移运算左值类型问题
Merge pull request !10 from caodongxia/openEuler-20.03-LTS-SP3
This commit is contained in:
commit
d081ad98e5
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
|
Name: opusfile
|
||||||
Version: 0.11
|
Version: 0.11
|
||||||
Release: 4
|
Release: 5
|
||||||
Summary: A high-level API provides seeking, decode, and playback of Opus streams
|
Summary: A high-level API provides seeking, decode, and playback of Opus streams
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: http://www.opus-codec.org/
|
URL: http://www.opus-codec.org/
|
||||||
Source0: http://downloads.xiph.org/releases/opus/%{name}-%{version}.tar.gz
|
Source0: http://downloads.xiph.org/releases/opus/%{name}-%{version}.tar.gz
|
||||||
Patch0000: 0001-fix-MemorySanitizer-use-of-uninitialized-value.patch
|
Patch0000: 0001-fix-MemorySanitizer-use-of-uninitialized-value.patch
|
||||||
Patch0001: Fix-short-circuit-test-when-seeking-in-short-files.patch
|
Patch0001: Fix-short-circuit-test-when-seeking-in-short-files.patch
|
||||||
|
Patch0002: fix-left-shift.patch
|
||||||
|
|
||||||
BuildRequires: libogg-devel openssl-devel opus-devel
|
BuildRequires: libogg-devel openssl-devel opus-devel
|
||||||
|
|
||||||
@ -51,6 +52,9 @@ Development package for opusfile package.
|
|||||||
%{_libdir}/{libopusfile.so,libopusurl.so}
|
%{_libdir}/{libopusfile.so,libopusurl.so}
|
||||||
|
|
||||||
%changelog
|
%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
|
* Tue Dec 14 2021 chenchen <chen_aka_jan@163.com> - 0.11-4
|
||||||
- Fix short-circuit test when seeking in short files
|
- Fix short-circuit test when seeking in short files
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user