diff asf-enc.c @ 1123:6992dd78ff68 libavformat

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
author diego
date Sat, 17 Jun 2006 15:53:23 +0000
parents edbe5c3717f9
children d89d7ef290da
line wrap: on
line diff
--- a/asf-enc.c	Fri Jun 16 20:45:29 2006 +0000
+++ b/asf-enc.c	Sat Jun 17 15:53:23 2006 +0000
@@ -349,7 +349,7 @@
     /* 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 @@
 
         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);
             }
         }