diff options
author | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2013-06-16 19:25:10 +0200 |
---|---|---|
committer | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2013-06-16 19:28:04 +0200 |
commit | c8c70dce5719576648489f9d2bad1cf9b61495a1 (patch) | |
tree | cae5e76ab648aba065993008d8524e25113e78bf /audio/format.h | |
parent | b24bb7076d80108eb63ab595a3b787f70023f377 (diff) | |
download | mpv-c8c70dce5719576648489f9d2bad1cf9b61495a1.tar.bz2 mpv-c8c70dce5719576648489f9d2bad1cf9b61495a1.tar.xz |
audio: fix af_fmt_seconds_to_bytes
Was missing samplerate
Diffstat (limited to 'audio/format.h')
-rw-r--r-- | audio/format.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/format.h b/audio/format.h index d7b3b34c42..f3aa3d8af0 100644 --- a/audio/format.h +++ b/audio/format.h @@ -133,7 +133,7 @@ int af_str2fmt_short(bstr str); int af_fmt2bits(int format); // Amount of bytes that contain audio of the given duration, aligned to frames. -int af_fmt_seconds_to_bytes(int format, float seconds, int channels); +int af_fmt_seconds_to_bytes(int format, float seconds, int channels, int samplerate); char* af_fmt2str(int format, char* str, int size); const char* af_fmt2str_short(int format); |