hornetseye-ffmpeg 1.2.3 → 1.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config.rb +1 -1
- data/ext/avinput.cc +1 -1
- data/ext/avoutput.cc +5 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec416cdd3d5000953664b5fa56a6c95c440ef36a
|
4
|
+
data.tar.gz: af54a31473ab657a53c66597aee21d7118bee7c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d07cf3a2fdb3a4749247aef7062a543490bb00d106cec9d950db6576fc79af92f533db62845484baf767f6c28dd7891a27d9d2714bd037e9c3830109a35c6da
|
7
|
+
data.tar.gz: 0f71cc44590601189a537b723a2234b191c19972a075b10a2f70e7f04a138c88ca47049b761f3d507d48c6970c6b461632cd0eaf1079f181586406e5a76e0377
|
data/config.rb
CHANGED
data/ext/avinput.cc
CHANGED
@@ -67,7 +67,7 @@ AVInput::AVInput( const string &mrl, bool audio ) throw (Error):
|
|
67
67
|
m_swsContext = sws_getContext( m_videoDec->width, m_videoDec->height,
|
68
68
|
m_videoDec->pix_fmt,
|
69
69
|
m_videoDec->width, m_videoDec->height,
|
70
|
-
|
70
|
+
AV_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
73
|
};
|
data/ext/avoutput.cc
CHANGED
@@ -69,7 +69,7 @@ AVOutput::AVOutput( const string &mrl, int videoBitRate, int width, int height,
|
|
69
69
|
c->time_base.num = timeBaseNum;
|
70
70
|
c->time_base.den = timeBaseDen;
|
71
71
|
c->gop_size = 12;
|
72
|
-
c->pix_fmt =
|
72
|
+
c->pix_fmt = AV_PIX_FMT_YUV420P;
|
73
73
|
c->sample_aspect_ratio.num = aspectRatioNum;
|
74
74
|
c->sample_aspect_ratio.den = aspectRatioDen;
|
75
75
|
if ( m_oc->oformat->flags & AVFMT_GLOBALHEADER )
|
@@ -125,15 +125,15 @@ AVOutput::AVOutput( const string &mrl, int videoBitRate, int width, int height,
|
|
125
125
|
"Error writing header of video \"" << mrl << "\": "
|
126
126
|
<< strerror( errno ) );
|
127
127
|
m_headerWritten = true;
|
128
|
-
m_swsContext = sws_getContext( width, height,
|
129
|
-
width, height,
|
128
|
+
m_swsContext = sws_getContext( width, height, AV_PIX_FMT_YUV420P,
|
129
|
+
width, height, AV_PIX_FMT_YUV420P,
|
130
130
|
SWS_FAST_BILINEAR, 0, 0, 0 );
|
131
131
|
m_frame = avcodec_alloc_frame();
|
132
132
|
ERRORMACRO( m_frame, Error, , "Error allocating frame" );
|
133
|
-
int size = avpicture_get_size(
|
133
|
+
int size = avpicture_get_size( AV_PIX_FMT_YUV420P, width, height );
|
134
134
|
char *frameBuffer = (char *)av_malloc( size );
|
135
135
|
ERRORMACRO( frameBuffer, Error, , "Error allocating memory buffer for frame" );
|
136
|
-
avpicture_fill( (AVPicture *)m_frame, (uint8_t *)frameBuffer,
|
136
|
+
avpicture_fill( (AVPicture *)m_frame, (uint8_t *)frameBuffer, AV_PIX_FMT_YUV420P,
|
137
137
|
width, height );
|
138
138
|
} catch ( Error &e ) {
|
139
139
|
close();
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hornetseye-ffmpeg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Wedekind
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: malloc
|