Mercurial > audlegacy-plugins
comparison src/filewriter/convert.c @ 2950:dcd8d93ba781
- mp3: adapted to lame-3.98. now filewriter writes valid TLEN.
- deleted unnecessary variable "written".
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Sat, 11 Oct 2008 02:02:41 +0900 |
parents | 11ef2164d90b |
children |
comparison
equal
deleted
inserted
replaced
2949:0f0227b29f43 | 2950:dcd8d93ba781 |
---|---|
45 gint convert_process(gpointer ptr, gint length) | 45 gint convert_process(gpointer ptr, gint length) |
46 { | 46 { |
47 gint frames, len; | 47 gint frames, len; |
48 frames = length / nch / FMT_SIZEOF(in_fmt); | 48 frames = length / nch / FMT_SIZEOF(in_fmt); |
49 len = frames * nch * FMT_SIZEOF(out_fmt); | 49 len = frames * nch * FMT_SIZEOF(out_fmt); |
50 | 50 |
51 if (convert_output == NULL || convert_output_length < len) | 51 if (convert_output == NULL || convert_output_length < len) |
52 { | 52 { |
53 convert_output_length = len; | 53 convert_output_length = len; |
54 convert_output = aud_smart_realloc(convert_output, &convert_output_length); | 54 convert_output = aud_smart_realloc(convert_output, &convert_output_length); |
55 } | 55 } |