hornetseye-frame 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/ext/colourspace.cc +8 -4
- metadata +2 -2
data/Rakefile
CHANGED
data/ext/colourspace.cc
CHANGED
@@ -95,13 +95,17 @@ FramePtr frameToType( const FramePtr in, const string &target ) throw (Error)
|
|
95
95
|
height = in->height();
|
96
96
|
FramePtr retVal( new Frame( target, width, height ) );
|
97
97
|
enum PixelFormat sourceFormat;
|
98
|
-
uint8_t *sourceData[
|
99
|
-
|
98
|
+
uint8_t *sourceData[8];
|
99
|
+
memset(sourceData, 0, sizeof(sourceData));
|
100
|
+
int sourceLineSize[8];
|
101
|
+
memset(sourceLineSize, 0, sizeof(sourceLineSize));
|
100
102
|
setupFormat( in->typecode(), width, height, in->data(),
|
101
103
|
&sourceFormat, &sourceData[0], &sourceLineSize[0] );
|
102
104
|
enum PixelFormat destFormat;
|
103
|
-
uint8_t *destData[
|
104
|
-
|
105
|
+
uint8_t *destData[8];
|
106
|
+
memset(destData, 0, sizeof(destData));
|
107
|
+
int destLineSize[8];
|
108
|
+
memset(destLineSize, 0, sizeof(destLineSize));
|
105
109
|
setupFormat( retVal->typecode(), width, height, retVal->data(),
|
106
110
|
&destFormat, &destData[0], &destLineSize[0] );
|
107
111
|
SwsContext *swsContext = sws_getContext( width, height, sourceFormat,
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hornetseye-frame
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2015-05-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: malloc
|