avcodec/truemotion2: use av_reallocp_array() and check return value
authorPaul B Mahol <onemda@gmail.com>
Mon, 9 Sep 2013 11:28:54 +0000 (11:28 +0000)
committerPaul B Mahol <onemda@gmail.com>
Mon, 9 Sep 2013 11:53:38 +0000 (11:53 +0000)
commit6e07bb36393f03d16b792738196ae045fc24acb6
treeae2493a6f1b81f5314b9fd185a80a8edea3e5520
parent7d75fb381ba774a8d2fa7de0c12140cd465c0255
avcodec/truemotion2: use av_reallocp_array() and check return value

Also reset tok_lens if reallocation fails.

Fixes #2946.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/truemotion2.c