lavfi/buffersrc: fix directly setting channel layout
authorRostislav Pehlivanov <atomnuker@gmail.com>
Tue, 21 Feb 2017 06:51:46 +0000 (06:51 +0000)
committerRostislav Pehlivanov <atomnuker@gmail.com>
Tue, 21 Feb 2017 16:25:47 +0000 (16:25 +0000)
commit42959044ac7dc40d5593cca2386d26257a615e5b
tree61c20ed07dda7ac4a9fe496f7e670c0652bded62
parent0c0aef1caf0cb5dd3b294f9fff923175036bd985
lavfi/buffersrc: fix directly setting channel layout

When setting the channel layout directly using AVBufferSrcParameters
the channel layout was correctly set however the init function still
expected the old string format to set the number of channels (when it
hadn't already been specified).

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
libavfilter/buffersrc.c