[vlc-commits] transcode: video: Don't probe conversion modules for each frame
Hugo Beauzée-Luyssen
git at videolan.org
Thu Aug 24 16:25:56 CEST 2017
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Aug 24 16:15:17 2017 +0200| [6155a8c9195249b23d9664a771a8db06b4fd2e24] | committer: Hugo Beauzée-Luyssen
transcode: video: Don't probe conversion modules for each frame
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6155a8c9195249b23d9664a771a8db06b4fd2e24
---
modules/stream_out/transcode/video.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/modules/stream_out/transcode/video.c b/modules/stream_out/transcode/video.c
index a06bd05e01..3e8637ae0a 100644
--- a/modules/stream_out/transcode/video.c
+++ b/modules/stream_out/transcode/video.c
@@ -61,7 +61,9 @@ static int video_update_format_decoder( decoder_t *p_dec )
if( !id->b_transcode )
return 0;
- if( id->p_encoder->fmt_in.i_codec == p_dec->fmt_out.i_codec )
+ if( id->p_encoder->fmt_in.i_codec == p_dec->fmt_out.i_codec ||
+ video_format_IsSimilar( &id->p_encoder->fmt_in.video,
+ &video_output_format( id )->video ) )
return 0;
msg_Dbg( stream, "Checking if filter chain %4.4s -> %4.4s is possible",
More information about the vlc-commits
mailing list