Package: flvtool2
Version: 1.0.6-3
Severity: normal
Tags: patch

Hello,

There is a typo in flv/stream.rb, at line 41, which will cause an
exception to be raised when running the following program:

% cat flv_stream_fail_signature.rb
#! /usr/bin/ruby
# -*- coding: utf-8 -*-

require 'flv'

File.open '/tmp/input.flv' do |in_stream|
  flv_stream = FLV::FLVStream.new in_stream

  p flv_stream.signature
end
% ruby flv_stream_fail_signature.rb
flv_stream_fail_signature.rb:9: undefined method `signature' for 
#<FLV::FLVStream:0x7f13817b2e38> (NoMethodError)
        from flv_stream_fail_signature.rb:6:in `open'
        from flv_stream_fail_signature.rb:6


I'm attaching a patch that seems to solve the problem.

Cheers,

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (101, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages flvtool2 depends on:
ii  ruby1.8                      1.8.7.249-2 Interpreter of object-oriented scr

flvtool2 recommends no packages.

flvtool2 suggests no packages.

-- no debconf information
--- /usr/lib/ruby/1.8/flv/stream.rb.orig	2010-04-23 23:26:37.000000000 +0200
+++ /usr/lib/ruby/1.8/flv/stream.rb	2010-04-23 23:32:07.000000000 +0200
@@ -38,7 +38,7 @@
   
   class FLVStream
     
-    attr_accessor :signatur,
+    attr_accessor :signature,
                   :version,
                   :type_flags_audio,
                   :type_flags_video,

Reply via email to