diff options
Diffstat (limited to 'src/lib/film_state.cc')
| -rw-r--r-- | src/lib/film_state.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib/film_state.cc b/src/lib/film_state.cc index 343e9ebb4..0b16f4175 100644 --- a/src/lib/film_state.cc +++ b/src/lib/film_state.cc @@ -266,3 +266,17 @@ FilmState::content_type () const return VIDEO; } + +/** @return Number of bytes per sample of a single channel */ +int +FilmState::bytes_per_sample () const +{ + switch (audio_sample_format) { + case AV_SAMPLE_FMT_S16: + return 2; + default: + assert (false); + } + + assert (false); +} |
