1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-13 10:26:09 +00:00
mpv/stream
reimar fe6c4fcae2 cleanup: malloc+memset->calloc, sizeof(TYPE)->sizeof(*ptr)
Replace malloc+memset by calloc

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32181 b3059339-0415-0410-9bf9-f77b7e298cf2

Replace malloc+memset by calloc.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32182 b3059339-0415-0410-9bf9-f77b7e298cf2

Replace malloc+memset by calloc.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32183 b3059339-0415-0410-9bf9-f77b7e298cf2

Replace some sizeof(type) by sizeof(*pointer)

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32184 b3059339-0415-0410-9bf9-f77b7e298cf2

Replace malloc+memset by calloc.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32186 b3059339-0415-0410-9bf9-f77b7e298cf2

Replace malloc+memset by calloc.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32187 b3059339-0415-0410-9bf9-f77b7e298cf2

Replace malloc+memset by calloc

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32188 b3059339-0415-0410-9bf9-f77b7e298cf2

Replace sizoef(type) by sizeof(*ptrvar).
Besides being consistent with FFmpeg style,
this reduces the size of a patch to rename these
types to not conflict with the windows.h definitions.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32189 b3059339-0415-0410-9bf9-f77b7e298cf2

Replace malloc+memset by calloc.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32191 b3059339-0415-0410-9bf9-f77b7e298cf2

Replace malloc+memset by calloc.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32192 b3059339-0415-0410-9bf9-f77b7e298cf2

Replace sizeof(type) by sizeof(*ptrvar)

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32193 b3059339-0415-0410-9bf9-f77b7e298cf2

Remove a useless cast.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32194 b3059339-0415-0410-9bf9-f77b7e298cf2

Replace sizeof(type)

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32195 b3059339-0415-0410-9bf9-f77b7e298cf2

Remove a useless cast.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32196 b3059339-0415-0410-9bf9-f77b7e298cf2

Replace several sizeof(WAVEFORMATEX)

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32197 b3059339-0415-0410-9bf9-f77b7e298cf2

Replace one more instance of sizeof(WAVEFORMATEX); fix compilation.
patch by Clément Bœsch, ubitux gmail com

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32199 b3059339-0415-0410-9bf9-f77b7e298cf2

Avoid some pointless uses of sizeof() and one related cast.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32200 b3059339-0415-0410-9bf9-f77b7e298cf2

Merge one malloc() + memset() invocation into calloc().

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32202 b3059339-0415-0410-9bf9-f77b7e298cf2

Replace malloc+memset by calloc

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32203 b3059339-0415-0410-9bf9-f77b7e298cf2

Replace sizeof(WAVEFORMATEX) occurrences.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32205 b3059339-0415-0410-9bf9-f77b7e298cf2

Replace malloc+memset by calloc.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32206 b3059339-0415-0410-9bf9-f77b7e298cf2

Replace sizeof(BITMAPINFOHEADER)

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32207 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-11-02 04:16:46 +02:00
..
freesdp
librtsp
realrtsp
ai_alsa1x.c spelling fixes 2010-11-02 04:15:03 +02:00
ai_alsa.c spelling fixes 2010-11-02 04:15:03 +02:00
ai_oss.c
asf_mmst_streaming.c
asf_mmst_streaming.h
asf_streaming.c printf format fixes ("%d" -> "%zd") 2010-11-02 04:15:48 +02:00
audio_in.c
audio_in.h
cache2.c cache: Remove unused cache_stats function 2010-11-02 04:16:45 +02:00
cache2.h cache: Move cache_fill_status extern declaration to cache2.h 2010-11-02 04:16:45 +02:00
cdd.h
cdinfo.c
cookies.c
cookies.h
dvb_tune.c
dvb_tune.h
dvbin.h
frequencies.c
frequencies.h
http.c stream/http.c: Move mime_type_table extern declaration to network.h 2010-11-02 04:16:45 +02:00
http.h
network.c
network.h stream/http.c: Move mime_type_table extern declaration to network.h 2010-11-02 04:16:45 +02:00
open.c Simplify code: make open_stream() accept NULL file_format argument 2010-11-02 04:15:48 +02:00
pnm.c spelling fixes 2010-11-02 04:15:03 +02:00
pnm.h
pvr.h
rtp.c
rtp.h
stream_bluray.c
stream_cdda.c
stream_cddb.c
stream_cue.c
stream_dvb.c
stream_dvd_common.c
stream_dvd_common.h
stream_dvd.c stream_dvd[nav]: Add const qualifiers to string arguments 2010-11-02 04:15:48 +02:00
stream_dvd.h stream_dvd[nav]: Add const qualifiers to string arguments 2010-11-02 04:15:48 +02:00
stream_dvdnav.c stream_dvd[nav]: Add const qualifiers to string arguments 2010-11-02 04:15:48 +02:00
stream_dvdnav.h stream_dvd[nav]: Add const qualifiers to string arguments 2010-11-02 04:15:48 +02:00
stream_ffmpeg.c
stream_file.c stream_file: Simplify and document MinGW stdin hack 2010-11-02 04:15:48 +02:00
stream_ftp.c
stream_live555.c
stream_mf.c
stream_nemesi.c
stream_netstream.c
stream_netstream.h
stream_null.c
stream_pvr.c
stream_radio.c
stream_radio.h
stream_rtp.c
stream_rtsp.c
stream_smb.c
stream_tv.c
stream_udp.c
stream_vcd.c
stream_vstream.c
stream.c stream: make stream_read_line() terminate line on EOF 2010-11-02 04:15:49 +02:00
stream.h cache: add sanity-check for sector size 2010-11-02 04:15:34 +02:00
tcp.c
tcp.h
tv.c cleanup: malloc+memset->calloc, sizeof(TYPE)->sizeof(*ptr) 2010-11-02 04:16:46 +02:00
tv.h stream/tv: move free_handle() from header to tv.c 2010-11-02 04:16:46 +02:00
tvi_bsdbt848.c
tvi_def.h cleanup: malloc+memset->calloc, sizeof(TYPE)->sizeof(*ptr) 2010-11-02 04:16:46 +02:00
tvi_dshow.c stream/tv: move free_handle() from header to tv.c 2010-11-02 04:16:46 +02:00
tvi_dshow.h
tvi_dummy.c
tvi_v4l2.c stream/tv: move free_handle() from header to tv.c 2010-11-02 04:16:46 +02:00
tvi_v4l.c stream/tv: move free_handle() from header to tv.c 2010-11-02 04:16:46 +02:00
udp.c
udp.h
url.c
url.h
vcd_read_darwin.h
vcd_read_fbsd.h
vcd_read_os2.h
vcd_read_win32.h
vcd_read.h