Mercurial > libavformat.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
1122:f8ee5a4b576e | 1123:6992dd78ff68 |
---|---|
347 } | 347 } |
348 | 348 |
349 /* stream headers */ | 349 /* stream headers */ |
350 for(n=0;n<s->nb_streams;n++) { | 350 for(n=0;n<s->nb_streams;n++) { |
351 int64_t es_pos; | 351 int64_t es_pos; |
352 uint8_t *er_spr = NULL; | 352 const uint8_t *er_spr = NULL; |
353 int er_spr_len = 0; | 353 int er_spr_len = 0; |
354 // ASFStream *stream = &asf->streams[n]; | 354 // ASFStream *stream = &asf->streams[n]; |
355 | 355 |
356 enc = s->streams[n]->codec; | 356 enc = s->streams[n]->codec; |
357 asf->streams[n].num = n + 1; | 357 asf->streams[n].num = n + 1; |
358 asf->streams[n].seq = 0; | 358 asf->streams[n].seq = 0; |
359 | 359 |
360 | 360 |
361 if (enc->codec_type == CODEC_TYPE_AUDIO) { | 361 if (enc->codec_type == CODEC_TYPE_AUDIO) { |
362 if (enc->codec_id == CODEC_ID_ADPCM_G726) { | 362 if (enc->codec_id == CODEC_ID_ADPCM_G726) { |
363 er_spr = (uint8_t *)error_spread_ADPCM_G726; | 363 er_spr = error_spread_ADPCM_G726; |
364 er_spr_len = sizeof(error_spread_ADPCM_G726); | 364 er_spr_len = sizeof(error_spread_ADPCM_G726); |
365 } | 365 } |
366 } | 366 } |
367 | 367 |
368 switch(enc->codec_type) { | 368 switch(enc->codec_type) { |