diff options
author | Stefan Huehner <stefan@huehner.org> | 2006-06-17 15:53:23 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2006-06-17 15:53:23 +0000 |
commit | a97c1e93aa3c1fbb7cde0699b36ea9be466c6a52 (patch) | |
tree | fa39edd0203e307b8d730eec10e717b918f06c1f /libavformat/asf-enc.c | |
parent | c8e9f801762f325e155dacd424226fd0d382c591 (diff) | |
download | ffmpeg-streaming-a97c1e93aa3c1fbb7cde0699b36ea9be466c6a52.zip ffmpeg-streaming-a97c1e93aa3c1fbb7cde0699b36ea9be466c6a52.tar.gz |
Add (mostly) const to variable and parameter declaration, where a char* was
used and 'const char*' should be, plus make some function declarations
static if they aren't used outside their declaring source file.
patch by Stefan Huehner stefan%%at%%huehner%%dot%%org
Originally committed as revision 5492 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/asf-enc.c')
-rw-r--r-- | libavformat/asf-enc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/asf-enc.c b/libavformat/asf-enc.c index 1f8a993..cca441b 100644 --- a/libavformat/asf-enc.c +++ b/libavformat/asf-enc.c @@ -349,7 +349,7 @@ static int asf_write_header1(AVFormatContext *s, int64_t file_size, int64_t data /* stream headers */ for(n=0;n<s->nb_streams;n++) { int64_t es_pos; - uint8_t *er_spr = NULL; + const uint8_t *er_spr = NULL; int er_spr_len = 0; // ASFStream *stream = &asf->streams[n]; @@ -360,7 +360,7 @@ static int asf_write_header1(AVFormatContext *s, int64_t file_size, int64_t data if (enc->codec_type == CODEC_TYPE_AUDIO) { if (enc->codec_id == CODEC_ID_ADPCM_G726) { - er_spr = (uint8_t *)error_spread_ADPCM_G726; + er_spr = error_spread_ADPCM_G726; er_spr_len = sizeof(error_spread_ADPCM_G726); } } |