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/movenc.c | |
parent | c8e9f801762f325e155dacd424226fd0d382c591 (diff) | |
download | ffmpeg-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/movenc.c')
-rw-r--r-- | libavformat/movenc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 9d1da5fdeb..cc24e314ab 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -788,7 +788,7 @@ static int mov_write_vmhd_tag(ByteIOContext *pb) static int mov_write_hdlr_tag(ByteIOContext *pb, MOVTrack* track) { - char *descr, *hdlr, *hdlr_type; + const char *descr, *hdlr, *hdlr_type; offset_t pos = url_ftell(pb); if (!track) { /* no media --> data handler */ @@ -1085,7 +1085,7 @@ static int mov_write_string_data_tag(ByteIOContext *pb, const char *data, int lo } } -static int mov_write_string_tag(ByteIOContext *pb, char *name, char *value, int long_style){ +static int mov_write_string_tag(ByteIOContext *pb, const char *name, const char *value, int long_style){ int size = 0; if ( value && value[0] ) { offset_t pos = url_ftell(pb); @@ -1225,7 +1225,7 @@ static size_t ascii_to_wc (ByteIOContext *pb, char *b, size_t n) return 2*n; } -static uint16_t language_code (char *str) +static uint16_t language_code (const char *str) { return ((((str[0]-0x60) & 0x1F)<<10) + (((str[1]-0x60) & 0x1F)<<5) + ((str[2]-0x60) & 0x1F)); } |