Signed-off-by: Janne Grunau <janne-libav@jannau.net> (cherry picked from commit d337dd3a907110b32c6305bb65e4beca5b830c5d) Signed-off-by: Anton Khirnov <anton@khirnov.net>