]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
remove coded_width and coded_height from encoding
authorUkn Unknown <4031821+uknunknown@users.noreply.github.com>
Fri, 6 Jun 2025 17:43:20 +0000 (10:43 -0700)
committerFlole <Flole998@users.noreply.github.com>
Tue, 10 Jun 2025 13:00:01 +0000 (15:00 +0200)
according to AVCodecContext documentation this is only used for decoding, oavctx is used for encoding

src/transcoding/transcode/video.c

index fbce82b774914fa6864a28c3d1737a9887c0c91d..37edc4c25ee5c8171722670faa0622f1a108fe3d 100644 (file)
@@ -224,8 +224,6 @@ tvh_video_context_open_encoder(TVHContext *self, AVDictionary **opts)
     }
 
 #if ENABLE_HWACCELS
-    self->oavctx->coded_width = self->oavctx->width;
-    self->oavctx->coded_height = self->oavctx->height;
 #if ENABLE_FFMPEG4_TRANSCODING
     // hwaccel is the user input for Hardware acceleration from Codec parameteres
     int hwaccel = -1;