indeo3: check return values of av_malloc()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
Avoid a null pointer dereference on oom in the aac encoder.

Fixes ticket #2732.
Avoid a null pointer dereference after oom on frame size change in mpegvideo.c.

Fixes ticket #2735.