avconv: set encoder timebase for subtitles.
authorAnton Khirnov <anton@khirnov.net>
Sun, 5 Feb 2012 13:28:19 +0000 (14:28 +0100)
committerAnton Khirnov <anton@khirnov.net>
Tue, 7 Feb 2012 19:07:14 +0000 (20:07 +0100)
The actual number (1/1000) will probably require some
discussion/tweaking in the future, but should be good enough for now,
since the timestamps in AVSubtitle are in this timebase by definition.

avconv.c

index 509b1dc..876ad19 100644 (file)
--- a/avconv.c
+++ b/avconv.c
@@ -2434,6 +2434,7 @@ static int transcode_init(OutputFile *output_files,
 #endif
                 break;
             case AVMEDIA_TYPE_SUBTITLE:
+                codec->time_base = (AVRational){1, 1000};
                 break;
             default:
                 abort();