Avoid a null pointer dereference in avcodec_decode_video2().