[vlc-commits] transcode: simplify format check on format change
Ilkka Ollakka
git at videolan.org
Sun Feb 5 15:03:56 CET 2017
vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Sun Feb 5 16:01:29 2017 +0200| [9fe3addee6aa03587287a71719412985364d75f6] | committer: Ilkka Ollakka
transcode: simplify format check on format change
We don't care any other stuff than chroma in this case, so no point
checking resolution and others.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9fe3addee6aa03587287a71719412985364d75f6
---
modules/stream_out/transcode/video.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/modules/stream_out/transcode/video.c b/modules/stream_out/transcode/video.c
index 8bda0ff..9a6f295 100644
--- a/modules/stream_out/transcode/video.c
+++ b/modules/stream_out/transcode/video.c
@@ -57,8 +57,10 @@ static int video_update_format_decoder( decoder_t *p_dec )
.sys = sys,
};
- if( id->p_encoder &&
- (video_format_IsSimilar( &id->p_encoder->fmt_in.video, &p_dec->fmt_out.video )))
+ if( !id->b_transcode )
+ return 0;
+
+ if( id->p_encoder->fmt_in.i_codec == p_dec->fmt_out.i_codec )
return 0;
msg_Dbg( stream, "Checking if filter chain %4.4s -> %4.4s is possible",
More information about the vlc-commits
mailing list