50 unsigned header_size, comment_size;
81 if (sample_rate <= 0 || sample_rate > INT_MAX) {
86 sample_rate_frac = sample_rate - floor(sample_rate);
89 "truncating fractional part of sample rate (%f)\n",
92 if ((header_size + 4) & 7 || header_size <
SOX_FIXED_HDR + comment_size
98 if (comment_size && comment_size < UINT_MAX) {
99 char *comment =
av_malloc(comment_size+1);
102 if (
avio_read(pb, comment, comment_size) != comment_size) {
106 comment[comment_size] = 0;