hornetseye-frame 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/ext/colourspace.cc +8 -4
  3. metadata +2 -2
data/Rakefile CHANGED
@@ -8,7 +8,7 @@ require 'rbconfig'
8
8
  require 'tempfile'
9
9
 
10
10
  PKG_NAME = 'hornetseye-frame'
11
- PKG_VERSION = '1.0.3'
11
+ PKG_VERSION = '1.0.4'
12
12
  CFG = RbConfig::CONFIG
13
13
  CXX = ENV[ 'CXX' ] || 'g++'
14
14
  RB_FILES = FileList[ 'lib/**/*.rb' ]
@@ -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[4];
99
- int sourceLineSize[4];
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[4];
104
- int destLineSize[4];
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.3
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: 2014-01-09 00:00:00.000000000 Z
12
+ date: 2015-05-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: malloc