libs: encoder: Add NULL pointer check for context when finalize.
Context may be NULL if pipeline fail in early stage, and the ensure_context will not be called. Need to add a pointer protection for it.
Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.
Context may be NULL if pipeline fail in early stage, and the ensure_context will not be called. Need to add a pointer protection for it.