ffruby 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +4 -0
- data/VERSION +1 -1
- data/ext/ffruby/extconf.rb +4 -0
- data/ext/ffruby/ffruby.c +12 -0
- metadata +4 -4
data/README.rdoc
CHANGED
@@ -22,6 +22,10 @@ Being able to reliably read the source file's metadata is very important in deci
|
|
22
22
|
|
23
23
|
== Changes
|
24
24
|
|
25
|
+
=== 0.2.1 (2010/11/26)
|
26
|
+
|
27
|
+
- New formats and codecs methods working on older FFmpeg versions.
|
28
|
+
|
25
29
|
=== 0.2.0 (2010/11/24)
|
26
30
|
|
27
31
|
- Reworked class structure under common FFruby module.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
data/ext/ffruby/extconf.rb
CHANGED
data/ext/ffruby/ffruby.c
CHANGED
@@ -32,10 +32,18 @@ static VALUE ffruby_formats(VALUE self, VALUE klass)
|
|
32
32
|
AVOutputFormat *ofmt;
|
33
33
|
VALUE array = rb_ary_new();
|
34
34
|
|
35
|
+
#ifdef HAVE_AV_IFORMAT_NEXT
|
35
36
|
for (ifmt = av_iformat_next(NULL); ifmt; ifmt = av_iformat_next(ifmt))
|
37
|
+
#else
|
38
|
+
for (ifmt = first_iformat; ifmt; ifmt = ifmt->next)
|
39
|
+
#endif
|
36
40
|
rb_ary_push(array, rb_str_new2(ifmt->name));
|
37
41
|
|
42
|
+
#ifdef HAVE_AV_OFORMAT_NEXT
|
38
43
|
for (ofmt = av_oformat_next(NULL); ofmt; ofmt = av_oformat_next(ofmt))
|
44
|
+
#else
|
45
|
+
for (ofmt = first_oformat; ofmt; ofmt = ofmt->next)
|
46
|
+
#endif
|
39
47
|
rb_ary_push(array, rb_str_new2(ofmt->name));
|
40
48
|
|
41
49
|
return rb_funcall(rb_funcall(array, rb_intern("uniq"), 0), rb_intern("sort"), 0);
|
@@ -49,7 +57,11 @@ static VALUE ffruby_codecs(VALUE self, VALUE klass)
|
|
49
57
|
AVCodec *codec;
|
50
58
|
VALUE array = rb_ary_new();
|
51
59
|
|
60
|
+
#ifdef HAVE_AV_CODEC_NEXT
|
52
61
|
for (codec = av_codec_next(NULL); codec; codec = av_codec_next(codec))
|
62
|
+
#else
|
63
|
+
for (codec = first_avcodec; codec; codec = codec->next)
|
64
|
+
#endif
|
53
65
|
rb_ary_push(array, rb_str_new2(codec->name));
|
54
66
|
|
55
67
|
return rb_funcall(rb_funcall(array, rb_intern("uniq"), 0), rb_intern("sort"), 0);
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ffruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 1
|
10
|
+
version: 0.2.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- James Le Cuirot
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-11-
|
18
|
+
date: 2010-11-27 00:00:00 +00:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|