]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
transcoding: use input time base for output
authorstbenz <benz.st@gmail.com>
Mon, 16 Feb 2015 18:43:10 +0000 (19:43 +0100)
committerJaroslav Kysela <perex@perex.cz>
Tue, 17 Feb 2015 20:27:25 +0000 (21:27 +0100)
src/plumbing/transcoding.c

index 49b90e5e92a705ce12194b3e94bde99c025768b3..2d2667a30cd00ad784e8a358288faa51d349fe0b 100644 (file)
@@ -1027,8 +1027,8 @@ transcoder_stream_video(transcoder_t *t, transcoder_stream_t *ts, th_pkt_t *pkt)
     octx->width           = vs->vid_width  ? vs->vid_width  : ictx->width;
     octx->height          = vs->vid_height ? vs->vid_height : ictx->height;
     octx->gop_size        = 25;
-    octx->time_base.den   = 25;
-    octx->time_base.num   = 1;
+    octx->time_base.den   = ictx->time_base.den;
+    octx->time_base.num   = ictx->time_base.num;
     octx->has_b_frames    = ictx->has_b_frames;
 
     switch (ts->ts_type) {