dvbsubdec: improve error checking
authorVittorio Giovara <vittorio.giovara@gmail.com>
Sun, 9 Nov 2014 07:48:44 +0000 (08:48 +0100)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Tue, 11 Nov 2014 10:49:54 +0000 (11:49 +0100)
commit2383323661f3b8342b2c4d356fcfe8c5d1b045f8
tree62b793c7b2cc36a88992ef596a97231f81d42655
parent1bdd21d97528d870fbb4388e837abaf390f2f7d7
dvbsubdec: improve error checking

Use av_mallocz_array instead of iterating and check the returned memory.
Check returned memory and cleanly exit in case of error during the loop.
Avoid a null pointer dereference for invalid data.

CC: libav-stable@libav.org
Bug-Id: CID 29575
libavcodec/dvbsubdec.c