mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-14 07:10:24 +02:00
Fix zero-sized mp3 import
This commit is contained in:
parent
1ce96f737f
commit
f4197d29e1
@ -405,7 +405,8 @@ enum mad_flow input_cb(void *_data, struct mad_stream *stream)
|
||||
struct private_data *data = (struct private_data *)_data;
|
||||
|
||||
data->updateResult = data->progress->Update((wxULongLong_t)data->file->Tell(),
|
||||
(wxULongLong_t)data->file->Length());
|
||||
(wxULongLong_t)data->file->Length() != 0 ?
|
||||
(wxULongLong_t)data->file->Length() : 1);
|
||||
if(data->updateResult != eProgressSuccess)
|
||||
return MAD_FLOW_STOP;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user