Fixes read of uninitialized memory. Based on a patch by Michael Niedermayer. Signed-off-by: Martin Storsjö <martin@martin.st>
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>