[Ffmpeg-cvslog] r5492 - in trunk/libavformat: aiff.c asf-enc.c avformat.h dv.c gif.c matroska.c movenc.c png.c utils.c yuv4mpeg.c
Alex Beregszaszi
alex
Sat Jun 17 19:29:52 CEST 2006
Hi,
> --- trunk/libavformat/asf-enc.c (original)
> +++ trunk/libavformat/asf-enc.c Sat Jun 17 17:53:23 2006
> @@ -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;
Thans broken imho, er_spr will be set to something, thus it wont be
constant anymore. Else defining a const variable just for holding NULL is even more nonsense.
> 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);
Or do I understand the meaning of const in a bad way?
--
Alex Beregszaszi email: alex at fsn.hu
Free Software Network cell: +36 70 3144424
More information about the ffmpeg-cvslog
mailing list