Skip to content

Commit

Permalink
opus: Use ogg_int64_t instead of int
Browse files Browse the repository at this point in the history
  • Loading branch information
radioactiveman committed May 23, 2024
1 parent 2429091 commit 3e530e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/opus/opus.cc
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ bool OpusPlugin::read_tag(const char * filename, VFSFile & file, Tuple & tuple,
m_bitrate = op_bitrate(opus_file, -1);
tuple.set_format("Opus", m_channels, sample_rate, m_bitrate / 1000);

int total_time = op_pcm_total(opus_file, -1);
ogg_int64_t total_time = op_pcm_total(opus_file, -1);
if (total_time > 0)
tuple.set_int(Tuple::Length, total_time / (sample_rate / 1000));

Expand Down

0 comments on commit 3e530e5

Please sign in to comment.