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)
committerMartin Storsjö <martin@martin.st>
Mon, 30 Sep 2013 07:48:58 +0000 (10:48 +0300)
commitcc41167aede4c101ad17eeffa8f39bb6c23d3dad
treeea2d45b72800454624f5e6a4e4e35045cbd36551
parent487b54104a01fa40a185a9a51e1cf41b2cf72367
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>
libavformat/asfdec.c