avconv: set the output stream timebase
authorAnton Khirnov <anton@khirnov.net>
Wed, 9 Jul 2014 10:33:03 +0000 (10:33 +0000)
committerAnton Khirnov <anton@khirnov.net>
Wed, 9 Jul 2014 13:30:33 +0000 (13:30 +0000)
This is required by the new API.

avconv.c

index 13968da..0ee7628 100644 (file)
--- a/avconv.c
+++ b/avconv.c
@@ -1972,6 +1972,8 @@ static int transcode_init(void)
                    "Error initializing the output stream codec context.\n");
             exit_program(1);
         }
                    "Error initializing the output stream codec context.\n");
             exit_program(1);
         }
+
+        ost->st->time_base = ost->enc_ctx->time_base;
     }
 
     /* init input streams */
     }
 
     /* init input streams */