ffaudio-core.cc.diff
src/ffaudio/ffaudio-core.cc | ||
---|---|---|
444 | 444 |
if (! find_codec (ic.get (), & cinfo)) |
445 | 445 |
return false; |
446 | 446 | |
447 |
tuple.set_int (Tuple::Length, ic->duration / 1000); |
|
447 |
if ((int)ic->duration > 0) |
|
448 |
tuple.set_int (Tuple::Length, ic->duration / 1000); |
|
448 | 449 |
tuple.set_int (Tuple::Bitrate, ic->bit_rate / 1000); |
449 | 450 | |
450 | 451 |
if (cinfo.codec->long_name) |