asfdec: Check the return value of asf_read_stream_properties
authorMartin Storsjö <martin@martin.st>
Sat, 28 Sep 2013 20:32:57 +0000 (23:32 +0300)
committerLuca Barbato <lu_zero@gentoo.org>
Tue, 7 Jan 2014 08:43:58 +0000 (09:43 +0100)
commite972338e3596036d5d1f3ef214c465fa8a4a8504
treef6bbd5d56e9e52002e5c19227e782311019abbfb
parent90294e31a199b457bba77da2f73183d2d154faf4
asfdec: Check the return value of asf_read_stream_properties

This makes sure errors in setting stream parameters are passed
on to the caller. This avoids successfully opening files while
some parameters aren't filled in properly.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
(cherry picked from commit cc41167aede4c101ad17eeffa8f39bb6c23d3dad)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
(cherry picked from commit fc4d11ec9b4c9710e2dac012d4ed0e7d08c6df7d)
libavformat/asfdec.c