From: Jaroslav Kysela Date: Sun, 7 Jan 2018 16:13:08 +0000 (+0100) Subject: transcoding: video - fix the wrong aspect ratio, fixes #4628 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e59a07579e1a0833519b68d39f817ee7ebe836f7;p=thirdparty%2Ftvheadend.git transcoding: video - fix the wrong aspect ratio, fixes #4628 --- diff --git a/src/transcoding/transcode/video.c b/src/transcoding/transcode/video.c index 035d41132..50e6b2f67 100644 --- a/src/transcoding/transcode/video.c +++ b/src/transcoding/transcode/video.c @@ -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; }