Commits on Source (4)
-
Steve Lhomme authored159906a5
-
Steve Lhomme authored
No need to go through all the chars when we can just check a minimum size with strnlen().
fc6ade22 -
Steve Lhomme authored
The mode can never be NULL. If it was, autodetect is set to false so we never reach this code. We can optimize the strlen() calls with a single strnlen() call that will only test up to 5 chars to check we don't have 3 or 4 chars.
a82ecdfa -
Steve Lhomme authored
No need to go through all the chars when we can test the the maximum size we want to reach before deciding it's too much with strnlen().
317f1f95
Showing
- modules/access/decklink.cpp 3 additions, 2 deletionsmodules/access/decklink.cpp
- modules/access/dsm/access.c 1 addition, 1 deletionmodules/access/dsm/access.c
- modules/codec/atsc_a65.c 1 addition, 1 deletionmodules/codec/atsc_a65.c
- modules/codec/libass.c 1 addition, 1 deletionmodules/codec/libass.c
- modules/codec/webvtt/subsvtt.c 1 addition, 1 deletionmodules/codec/webvtt/subsvtt.c
- modules/demux/mjpeg.c 1 addition, 1 deletionmodules/demux/mjpeg.c
- modules/demux/mkv/mkv.cpp 1 addition, 1 deletionmodules/demux/mkv/mkv.cpp
- modules/gui/macosx/coreinteraction/VLCVideoFilterHelper.m 1 addition, 1 deletionmodules/gui/macosx/coreinteraction/VLCVideoFilterHelper.m
- modules/misc/audioscrobbler.c 1 addition, 1 deletionmodules/misc/audioscrobbler.c
- modules/stream_filter/hds/hds.c 1 addition, 1 deletionmodules/stream_filter/hds/hds.c
- modules/stream_out/rtp.c 1 addition, 1 deletionmodules/stream_out/rtp.c
- modules/stream_out/rtsp.c 1 addition, 1 deletionmodules/stream_out/rtsp.c