avcodec/mpeg4video_parser: Check for extradata parsing failure

Found-by: CSA
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avcodec/pthread_slice: Check for malloc failure

Found-by: CSA
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>