Mercurial > mplayer.hg
comparison libmpdemux/stream_livedotcom.c @ 19062:83c3afeab35d
drops casts from void * on malloc/calloc from libmpdemux code
author | reynaldo |
---|---|
date | Thu, 13 Jul 2006 16:41:13 +0000 |
parents | d2d9d011203f |
children |
comparison
equal
deleted
inserted
replaced
19061:86350b4b8203 | 19062:83c3afeab35d |
---|---|
76 if(len == -1) | 76 if(len == -1) |
77 return STREAM_ERROR; | 77 return STREAM_ERROR; |
78 if(len > SIZE_MAX - 1) | 78 if(len > SIZE_MAX - 1) |
79 return STREAM_ERROR; | 79 return STREAM_ERROR; |
80 | 80 |
81 sdpDescription = (char*)malloc(len+1); | 81 sdpDescription = malloc(len+1); |
82 if(sdpDescription == NULL) return STREAM_ERROR; | 82 if(sdpDescription == NULL) return STREAM_ERROR; |
83 numBytesRead = read(f, sdpDescription, len); | 83 numBytesRead = read(f, sdpDescription, len); |
84 if(numBytesRead != len) { | 84 if(numBytesRead != len) { |
85 free(sdpDescription); | 85 free(sdpDescription); |
86 return STREAM_ERROR; | 86 return STREAM_ERROR; |