avformat/gxfenc: Clear nb_fields on array deallocation