Revision a2704c97 libavformat/soxenc.c
libavformat/soxenc.c | ||
---|---|---|
98 | 98 |
|
99 | 99 |
if (!url_is_streamed(s->pb)) { |
100 | 100 |
/* update number of samples */ |
101 |
int64_t file_size = url_ftell(pb);
|
|
101 |
int64_t file_size = avio_tell(pb);
|
|
102 | 102 |
int64_t num_samples = (file_size - sox->header_size - 4LL) >> 2LL; |
103 | 103 |
avio_seek(pb, 8, SEEK_SET); |
104 | 104 |
if (enc->codec_id == CODEC_ID_PCM_S32LE) { |
Also available in: Unified diff