Skip to content

Commit 19026f3

Browse files
uknunknownFlole998
authored andcommitted
remove coded_width and coded_height from encoding
according to AVCodecContext documentation this is only used for decoding, oavctx is used for encoding
1 parent 7bbbe57 commit 19026f3

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/transcoding/transcode/video.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,6 @@ tvh_video_context_open_encoder(TVHContext *self, AVDictionary **opts)
224224
}
225225

226226
#if ENABLE_HWACCELS
227-
self->oavctx->coded_width = self->oavctx->width;
228-
self->oavctx->coded_height = self->oavctx->height;
229227
#if ENABLE_FFMPEG4_TRANSCODING
230228
// hwaccel is the user input for Hardware acceleration from Codec parameteres
231229
int hwaccel = -1;

0 commit comments

Comments
 (0)