vcs_ruby 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/libAV/libav.rb +6 -6
- metadata +1 -1
data/lib/libAV/libav.rb
CHANGED
@@ -148,21 +148,21 @@ private
|
|
148
148
|
return parsed
|
149
149
|
end
|
150
150
|
|
151
|
-
def
|
151
|
+
def parse_video_streams
|
152
152
|
parsed = false
|
153
|
-
@
|
153
|
+
@video_streams = []
|
154
154
|
@cache.scan(/\[STREAM\](.*?)\[\/STREAM\]/m) do |stream|
|
155
155
|
info = get_hash(stream[0])
|
156
|
-
if info['codec_type'] == '
|
157
|
-
@
|
156
|
+
if info['codec_type'] == 'video'
|
157
|
+
@video_streams << LibAVVideoStream.new(info)
|
158
158
|
parsed = true
|
159
159
|
end
|
160
160
|
end
|
161
161
|
unless parsed
|
162
162
|
@cache.scan(/\[streams.stream.\d\](.*?)\n\n/m) do |stream|
|
163
163
|
info = get_hash(stream[0])
|
164
|
-
if info['codec_type'] == '
|
165
|
-
@
|
164
|
+
if info['codec_type'] == 'vidio'
|
165
|
+
@vidio_streams << LibAVVidioStream.new(info)
|
166
166
|
parsed = true
|
167
167
|
end
|
168
168
|
end
|