diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-04-10 16:50:16 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-04-10 16:50:16 +0200 |
commit | 84f66b075a9565057dd27906dfbe91cc95d37a70 (patch) | |
tree | a88c42cc94ce67ed7d56dd0da7d7a5cc61c080df /toolame.c | |
parent | de30b580cc7ad6a81429e3e5815b54916819cd50 (diff) | |
download | toolame-dab-84f66b075a9565057dd27906dfbe91cc95d37a70.tar.gz toolame-dab-84f66b075a9565057dd27906dfbe91cc95d37a70.tar.bz2 toolame-dab-84f66b075a9565057dd27906dfbe91cc95d37a70.zip |
VLC input: add support for mono
Diffstat (limited to 'toolame.c')
-rw-r--r-- | toolame.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1063,7 +1063,8 @@ void parse_args (int argc, char **argv, frame_info * frame, int *psy, exit (1); } *num_samples = MAX_U_32_NUM; - if (vlc_in_prepare(glopts.verbosity, samplerate, inPath) != 0) { + int channels = (header->mode == MPG_MD_MONO) ? 1 : 2; + if (vlc_in_prepare(glopts.verbosity, samplerate, inPath, channels) != 0) { fprintf(stderr, "VLC initialisation failed\n"); exit(1); } |