Skip to content

Commit

Permalink
Hotfix Moov parser (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzograndi4 authored Oct 5, 2020
1 parent 01632f4 commit 5d94ecb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/format_parser/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module FormatParser
VERSION = '0.25.1'
VERSION = '0.25.2'
end
2 changes: 1 addition & 1 deletion lib/parsers/moov_parser/decoder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def find_atoms_by_path(atoms, atom_types)
def find_video_trak_atom(atoms)
trak_atoms = find_atoms_by_path(atoms, ['moov', 'trak'])

return [] if trak_atoms.empty?
return if trak_atoms.empty?

trak_atoms.find do |trak_atom|
hdlr_atom = find_first_atom_by_path([trak_atom], 'trak', 'mdia', 'hdlr')
Expand Down

0 comments on commit 5d94ecb

Please sign in to comment.