[vlc-commits] transcode: don't reset the video encoder format to the one it was just init with

Steve Lhomme git at videolan.org
Mon Jan 18 08:08:29 UTC 2021


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Jan 13 14:32:08 2021 +0100| [94215c3342072782d3e0c7a09c8e847b2a001dbb] | committer: Steve Lhomme

transcode: don't reset the video encoder format to the one it was just init with

transcode_encoder_update_format_in() sets the encoder->fmt_in but the encoder
was created a few lines above with encoder_tested_fmt_in.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=94215c3342072782d3e0c7a09c8e847b2a001dbb
---

 modules/stream_out/transcode/video.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/modules/stream_out/transcode/video.c b/modules/stream_out/transcode/video.c
index adf989d22a..db9998630a 100644
--- a/modules/stream_out/transcode/video.c
+++ b/modules/stream_out/transcode/video.c
@@ -247,9 +247,6 @@ int transcode_video_init( sout_stream_t *p_stream, const es_format_t *p_fmt,
     p_enc_owner->id = id;
     p_enc_owner->enc.cbs = &encoder_video_transcode_cbs;
 
-    /* Will use this format as encoder input for now */
-    transcode_encoder_update_format_in( id->encoder, &encoder_tested_fmt_in );
-
     es_format_Clean( &encoder_tested_fmt_in );
 
     return VLC_SUCCESS;



More information about the vlc-commits mailing list