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