Package: dvgrab
Version: 3.0-1
Severity: normal

The manual page for dvgrab says that:

       If you specify a trailing ’-’ then the format is forced to
       raw DV or HDV and sent to stdout. dvgrab will also output raw
       DV or HDV to stdout while capturing to a file if stdout is
       piped or redirected.

This used to work, but now it results in an output file named
"-001.avi".

The following patch appears to fix this, though the informational messages
still refer to "-001.dv":

--- dvgrab-3.0~/dvgrab.cc       2007-12-27 20:08:35.000000000 +0000
+++ dvgrab-3.0/dvgrab.cc        2007-12-27 20:12:46.000000000 +0000
@@ -287,6 +287,11 @@
                if ( m_file_format != JPEG_FORMAT )
                        m_dst_file_name[ filename.find_last_of( '.' ) ] = '\0';
        }
+       else if ( filename == "-" )
+       {
+               m_file_format = RAW_FORMAT;
+               m_raw_pipe = true;
+       }
 }
 
 void DVgrab::getargs( int argc, char *argv[] )
@@ -436,9 +441,6 @@
                        print_version();
                        exit( EXIT_SUCCESS );
                        break;
-               case '-':
-                       m_raw_pipe = true;
-                       break;
                default:
                        print_usage();
                        exit( EXIT_FAILURE );
@@ -458,7 +460,7 @@
                exit( EXIT_FAILURE );
        }
 
-       if ( m_dst_file_name == NULL && !m_raw_pipe )
+       if ( m_dst_file_name == NULL )
                m_dst_file_name = "dvgrab-";
 }
 
--- END ---

Actually only the first hunk of this patch is necessary; the second and
third hunks delete redundant code.

Ben.

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-4-686
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to