mpeg12dec: Always close reader on error
authorVittorio Giovara <vittorio.giovara@gmail.com>
Mon, 25 Jan 2016 20:11:43 +0000 (15:11 -0500)
committerDiego Biurrun <diego@biurrun.de>
Tue, 9 Feb 2016 19:04:58 +0000 (20:04 +0100)
commitcdbaa436042ba59c3b2bd7e9652e9a14136fd604
treec3b1aaad9c93cf418541a8cd219f19064555bb86
parent7a00653be6b13131ce1b2cdeca696429f57caaf8
mpeg12dec: Always close reader on error

A reader left open may lead to hangs.

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: Diego Biurrun <diego@biurrun.de>
libavcodec/mpeg12dec.c