h264: free the tables and uninitialize the context on flush