Move img_convert_ctx to VideoState and free it in stream_close().