]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
transcoding: video - fix the wrong aspect ratio, fixes #4628
authorJaroslav Kysela <perex@perex.cz>
Sun, 7 Jan 2018 16:13:08 +0000 (17:13 +0100)
committerJaroslav Kysela <perex@perex.cz>
Sun, 7 Jan 2018 16:13:08 +0000 (17:13 +0100)
src/transcoding/transcode/video.c

index 035d41132582d7803558361b470f29c65a12e166..50e6b2f674f84d141a0af8eeceefe6c7a824f61f 100644 (file)
@@ -178,6 +178,8 @@ tvh_video_context_open_encoder(TVHContext *self, AVDictionary **opts)
     self->oavctx->gop_size = ceil(av_q2d(av_inv_q(av_mul_q(
         self->oavctx->time_base, ticks_per_frame))));
     self->oavctx->gop_size *= 3;
+
+    self->oavctx->sample_aspect_ratio = self->iavctx->sample_aspect_ratio;
     return 0;
 }