hornetseye-ffmpeg 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/Rakefile +3 -2
  2. data/ext/avinput.cc +2 -2
  3. metadata +2 -2
data/Rakefile CHANGED
@@ -7,7 +7,7 @@ require 'rake/loaders/makefile'
7
7
  require 'rbconfig'
8
8
 
9
9
  PKG_NAME = 'hornetseye-ffmpeg'
10
- PKG_VERSION = '1.2.1'
10
+ PKG_VERSION = '1.2.2'
11
11
  CFG = RbConfig::CONFIG
12
12
  CXX = ENV[ 'CXX' ] || 'g++'
13
13
  RB_FILES = FileList[ 'lib/**/*.rb' ]
@@ -141,9 +141,10 @@ Rake::PackageTask.new PKG_NAME, PKG_VERSION do |p|
141
141
  p.package_files = PKG_FILES
142
142
  end
143
143
 
144
+
144
145
  begin
145
146
  require 'rubygems'
146
- require 'rubygems/builder'
147
+ require "rubygems/builder"
147
148
  $SPEC = Gem::Specification.new do |s|
148
149
  s.name = PKG_NAME
149
150
  s.version = PKG_VERSION
@@ -70,8 +70,6 @@ AVInput::AVInput( const string &mrl, bool audio ) throw (Error):
70
70
  PIX_FMT_YUV420P, SWS_FAST_BILINEAR, 0, 0, 0 );
71
71
  m_vFrame = avcodec_alloc_frame();
72
72
  ERRORMACRO(m_vFrame, Error, , "Error allocating frame");
73
- m_aFrame = avcodec_alloc_frame();
74
- ERRORMACRO(m_aFrame, Error, , "Error allocating frame");
75
73
  };
76
74
  if ( m_audioStream >= 0 )
77
75
  m_audioDec = m_ic->streams[ m_audioStream ]->codec;
@@ -85,6 +83,8 @@ AVInput::AVInput( const string &mrl, bool audio ) throw (Error):
85
83
  ERRORMACRO( false, Error, , "Error opening audio codec for file \""
86
84
  << mrl << "\": " << strerror( errno ) );
87
85
  };
86
+ m_aFrame = avcodec_alloc_frame();
87
+ ERRORMACRO(m_aFrame, Error, , "Error allocating frame");
88
88
  };
89
89
  } catch ( Error &e ) {
90
90
  close();
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hornetseye-ffmpeg
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
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: 2015-04-09 00:00:00.000000000 Z
12
+ date: 2015-04-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: malloc