lavd/alsa: add stream validation
authorLukasz Marek <lukasz.m.luki@gmail.com>
Fri, 25 Oct 2013 23:32:55 +0000 (01:32 +0200)
committerNicolas George <george@nsup.org>
Sun, 3 Nov 2013 09:28:15 +0000 (10:28 +0100)
commite56d1a120324fa49a5367cbf22098c5c7eb23f91
tree5cf22bc0246aac07ba9f0927de460e031de37794
parent6ac9afd16e385fc450c58b8a3fb44baa99ea4af9
lavd/alsa: add stream validation

Don't trust provided streams.
Return with error when stream count is not 1 or
provided stream is not an audio stream.

Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
libavdevice/alsa-audio-enc.c