From: <jpg...@us...> - 2007-10-30 21:06:07
|
Revision: 1247 http://iaxclient.svn.sourceforge.net/iaxclient/?rev=1247&view=rev Author: jpgrayson Date: 2007-10-30 14:06:10 -0700 (Tue, 30 Oct 2007) Log Message: ----------- Fix constness issues. Modified Paths: -------------- trunk/lib/codec_theora.c trunk/lib/slice.c trunk/lib/slice.h Modified: trunk/lib/codec_theora.c =================================================================== --- trunk/lib/codec_theora.c 2007-10-30 20:25:44 UTC (rev 1246) +++ trunk/lib/codec_theora.c 2007-10-30 21:06:10 UTC (rev 1247) @@ -111,7 +111,8 @@ free(c); } -static int decode(struct iaxc_video_codec *c, int inlen, char *in, int *outlen, char *out) +static int decode(struct iaxc_video_codec *c, int inlen, const char *in, + int *outlen, char *out) { struct theora_decoder *d; ogg_packet op; Modified: trunk/lib/slice.c =================================================================== --- trunk/lib/slice.c 2007-10-30 20:25:44 UTC (rev 1246) +++ trunk/lib/slice.c 2007-10-30 21:06:10 UTC (rev 1247) @@ -32,7 +32,7 @@ return 0; } -int slice(char *data, +int slice(const char *data, unsigned int size, struct slice_set_t *slice_set, struct slicer_context *sc @@ -93,7 +93,8 @@ dsc->frame_complete = 0; } -char * deslice(char *in, int inlen, int *outlen, struct deslicer_context *dsc) +char * +deslice(const char *in, int inlen, int *outlen, struct deslicer_context *dsc) { unsigned char frame_index, slice_index, num_slices, version; unsigned short source_id; Modified: trunk/lib/slice.h =================================================================== --- trunk/lib/slice.h 2007-10-30 20:25:44 UTC (rev 1246) +++ trunk/lib/slice.h 2007-10-30 21:06:10 UTC (rev 1247) @@ -77,7 +77,7 @@ * sc - holds stream information such as source id and frame index * Returns 0 if completed successfully or a negative value if failure. */ -int slice(char *data, +int slice(const char *data, unsigned int size, struct slice_set_t *slice_set, struct slicer_context *sc @@ -103,6 +103,7 @@ * Returns a pointer to a buffer containing the completed frame and updates * outlen with the frame size if successful */ -char * deslice(char *in, int inlen, int *outlen, struct deslicer_context *dsc); +char * +deslice(const char *in, int inlen, int *outlen, struct deslicer_context *dsc); -#endif // __SLICE_H__ +#endif This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |