Skip to content

Commit 0c60913

Browse files
committed
fix
1 parent a8e6ec7 commit 0c60913

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ffmpeg/movie.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def initialize(paths, analyzeduration = 15000000, probesize=15000000 )
6262
@duration = 0
6363
else
6464
video_streams = metadata[:streams].select { |stream| stream.key?(:codec_type) and stream[:codec_type] === 'video' }
65-
audio_streams = metadata[:streams].select { |stream| stream.key?(:codec_type) and stream[:codec_type] === 'audio' and stream[:codec_name] }
65+
audio_streams = metadata[:streams].select { |stream| stream.key?(:codec_type) and stream[:codec_type] === 'audio' and stream[:codec_name] != 'none' }
6666

6767
data_streams = metadata[:streams].select { |stream| stream.key?(:codec_type) and stream[:codec_type] === 'data' }
6868

0 commit comments

Comments
 (0)