[vlc-commits] transcode: the visible dimensions are unlikely to be 0
Steve Lhomme
git at videolan.org
Wed Apr 4 18:27:53 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Thu Dec 14 14:20:25 2017 +0100| [432ddbfd4f86fe14daafa7c07c4fa233f30505dc] | committer: Steve Lhomme
transcode: the visible dimensions are unlikely to be 0
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=432ddbfd4f86fe14daafa7c07c4fa233f30505dc
---
modules/stream_out/transcode/video.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/stream_out/transcode/video.c b/modules/stream_out/transcode/video.c
index 74856c870b..80ac6c90f9 100644
--- a/modules/stream_out/transcode/video.c
+++ b/modules/stream_out/transcode/video.c
@@ -445,9 +445,9 @@ static void transcode_video_size_init( sout_stream_t *p_stream,
int i_src_visible_width = p_vid_out->i_visible_width;
int i_src_visible_height = p_vid_out->i_visible_height;
- if (i_src_visible_width == 0)
+ if (unlikely(i_src_visible_width == 0))
i_src_visible_width = p_vid_out->i_width;
- if (i_src_visible_height == 0)
+ if (unlikely(i_src_visible_height == 0))
i_src_visible_height = p_vid_out->i_height;
More information about the vlc-commits
mailing list