cafdec: check avio_read return value
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Tue, 12 May 2015 21:49:45 +0000 (23:49 +0200)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Wed, 13 May 2015 18:09:25 +0000 (20:09 +0200)
commita3ede6b742f37d511253ab4c2fd98c13203f1cd3
tree6d4c2e0b9d0b3ffafdd1a2e108fa7ee1a222fdde
parent81cf9108563510dee24f73b2c5d94a7bd07ff747
cafdec: check avio_read return value

If avio_read fails, the buffer can contain uninitialized values.

Reviewed-by: Carl Eugen Hoyos <cehoyos@ag.or.at>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
libavformat/cafdec.c